Showing posts with label computer. Show all posts
Showing posts with label computer. Show all posts

Thursday, March 22, 2012

on making a CD for SQL server express

how do I go about getting SQL server express onto a CD? My sister in law wants SQL server express on her computer for her business but she does not have internet access so I want to put it on CD and install it on her machine? Thanks....

Andy

Hi Andy,

You can get the required files at the below link: http://msdn.microsoft.com/vstudio/express/sql/download/

The major files (if you don't want the advanced features) would be:

* .NET Framework 2.0
* SQL Server 2005 Express Edition
* SQL Server Management Studio Express

Just download them and then bung them on a CD with your preferred burning software. An idea might be to include some instructions as there is an install order. Also, unless you want to create a wrapper installer or some such, your sister in law will have to run each file (they are .exe files from memory) individually.

Not sure, but have I missed the point?

Hope that helps but sorry if it didn't

|||

Thanks Nate, I will give that a try... thanks again....

Andy

Hello,

the examples from MSDN like the following, don't run on my computer. A System.Data.SqlServer don't exist. No SQLCommand Type, no SQLContext.GetCommand Method and so on...

Ist there something wrong with my installation or how do i execute commands
inside a CLR SQL Server Trigger?

Regards,
Markus
Imports System
Imports System.Data
Imports System.Data.Sql
Imports System.Data.SqlServer
Imports System.Data.SqlTypes
Imports System.Text.RegularExpressions

Public Class EmailTrigger

Public Shared Sub EmailAudit()
Dim triggContext As SqlTriggerContext = _
SqlContext.GetTriggerContext()
Dim userName As String
If triggContext.TriggerAction = TriggerAction.Insert Then
Dim sqlComm As SqlCommand = SqlContext.GetCommand()
Dim sqlP As SqlPipe = SqlContext.GetPipe()
sqlComm.CommandText = "SELECT Username from INSERTED"
Dim dataRecord As Object = sqlComm.ExecuteScalar
userName = dataRecord.ToString
If IsValidEMailAddress(userName) Then
sqlComm.CommandText = "INSERT Emails " & _
"VALUES ('" & userName & "')"
sqlP.Send(sqlComm.CommandText)
sqlP.Execute(sqlComm)
End If
End If
End Sub

Public Shared Function IsValidEMailAddress(ByVal email As String) _
As Boolean
Return Regex.IsMatch(email, _
"^([\w-]+\.)*?[\w-]+@.[\w-]+\.([\w-]+\.)*?[\w]+$")
End Function

End Class

It seems that something like this would work:

Dim pipe As SqlPipe = SqlContext.Pipe
Dim sqlcommand As New System.Data.SqlClient.SqlCommand

sqlcommand.CommandText = _
"Update Haushaltshilfe set Wochentag = 'Montag' where Wochentag = 'Dienstag'"
pipe.ExecuteAndSend(sqlcommand)

sqlcommand.CommandText = "Select * from inserted"
pipe.ExecuteAndSend(sqlcommand)

But how do i get the results?

Is it really so that the examples from msdn with System.Data.SQLServer don't work?|||The reason why it's not working for you is because the example you're trying is old, and they have now merged the old SqlServer provider for System.Data.SqlServer with the client side provider and created a new namespace: Microsoft.SqlServer.Server. In addition some of the methods on the SqlContext object have been replaced with properties.
Replace the Import System.Data.SqlServer with Import Microsoft.SqlServer.Server and do an extra import for System.Data.SqlClient. Then in the code where you say GetTriggerContext, use the propery TriggerContext instead. you also need to create a connection: Dim sqlConn as SqlConnection = new SqlConnection("Context Connection=true") and the open the connection. From the connection you can create the command: sqlConn.CreateCommand. Instead of GetPipe you use the Pipe property and finally you call ExecuteAndSend on the Pipe with your command as param.
Niels

|||Thank you very much Niels!
Are there web-pages where the latest changes in VS 2005 and SQL Server are documented?|||You can check Bob B's blog and mine. We're trying keep track of what's changing.

Tuesday, March 20, 2012

::Conection

Hi All,
I Have a SQL Server run in a computer that run Windows 2003 and have one
static ip.
This computer also have a NAT with basic firewall to distribute internet.
In my home I have one computer withWindows XP that I want acess SQL.
When I disable basic firewall, I can conect, but if firewall is on I can't.
My question: what port I need open to connect in my sql?
I know that I need use SQL account.
Thanks
Default installations of SQL Server monitor TCP port 1433, but the port
doesn't need to be 1433. A named instance of SQL Server 2000 will listen a
dynamic port by default. This port should be changed to a fixed port prior
to configuring the firewall. You can refer to this article for more
information:
287932 INF: TCP Ports Needed for Communication to SQL Server Through a
Firewall
http://support.microsoft.com/?id=287932
HTH!
Sincerely,
William Wang
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
This posting is provided "AS IS" with no warranties, and confers no rights.
sql

::Conection

Hi All,
I Have a SQL Server run in a computer that run Windows 2003 and have one
static ip.
This computer also have a NAT with basic firewall to distribute internet.
In my home I have one computer withWindows XP that I want acess SQL.
When I disable basic firewall, I can conect, but if firewall is on I can't.
My question: what port I need open to connect in my sql?
I know that I need use SQL account.
ThanksDefault installations of SQL Server monitor TCP port 1433, but the port
doesn't need to be 1433. A named instance of SQL Server 2000 will listen a
dynamic port by default. This port should be changed to a fixed port prior
to configuring the firewall. You can refer to this article for more
information:
287932 INF: TCP Ports Needed for Communication to SQL Server Through a
Firewall
http://support.microsoft.com/?id=287932
HTH!
Sincerely,
William Wang
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
This posting is provided "AS IS" with no warranties, and confers no rights.

::Conection

Hi All,
I Have a SQL Server run in a computer that run Windows 2003 and have one
static ip.
This computer also have a NAT with basic firewall to distribute internet.
In my home I have one computer withWindows XP that I want acess SQL.
When I disable basic firewall, I can conect, but if firewall is on I can't.
My question: what port I need open to connect in my sql?
I know that I need use SQL account.
ThanksDefault installations of SQL Server monitor TCP port 1433, but the port
doesn't need to be 1433. A named instance of SQL Server 2000 will listen a
dynamic port by default. This port should be changed to a fixed port prior
to configuring the firewall. You can refer to this article for more
information:
287932 INF: TCP Ports Needed for Communication to SQL Server Through a
Firewall
http://support.microsoft.com/?id=287932
HTH!
Sincerely,
William Wang
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
This posting is provided "AS IS" with no warranties, and confers no rights.

Thursday, March 8, 2012

.NET Framework 1.1 and SQL server express 2005?

Hi

I am running VS.NET 2003 on my computer and wish to try to install the *free* SQL server express 2005 .

The problem is I can't install SQL express as it asks me to install .NET framework 2.0 first.

I wonder if I do so, will I be able to work with VS.NET 2003?

Thanks,

Yes VS.NET 2003 would work just fine. Multiple versions of .NET framework can run easily.