First, ignore dbahooker; he's a troll.
Second, does your SQLServer have both Windows Security and SQLServer
security enabled?
Robin S.
---------------------
stfu girl
Microsoft needs to drop the Xbox and start taking DATABASES SERIOUSLY
f.ck .NET and f.ck XML
Microsoft needs to put a lot more effort into the database world.
ADO.net sucks balls compared to ADO classic
> First, ignore dbahooker; he's a troll.
>
[quoted text clipped - 15 lines]
>
> - Show quoted text -
> First, ignore dbahooker; he's a troll.
Huh?
> Second, does your SQLServer have both Windows Security and SQLServer
> security enabled?
Yes, I do. And my websites and applications have no problem. Here is a
piece of code using VS 2003 that works fine:
Dim sTemp As String
Dim iTemp As Integer
Dim dbReader As SqlDataReader
Dim ConnectionString As String = _
"Persist Security Info=False;Data Source=Server;Initial Catalog=ft;User
ID=xxx;Password=yyyy;"
Dim objConn As New SqlConnection(ConnectionString)
Dim CommandText As String = "AddEmployees"
Dim objCmd As New SqlCommand(CommandText, objConn)
objCmd.CommandType = CommandType.StoredProcedure
objConn.Open()
Not sure what it means when it says provider cannot be found. The Server
Explorer Pane shows the Server, the Services that are running and the Sql
Server but shows it with a red X.
Thanks,
Tom
> Robin S.
> ---------------------
[quoted text clipped - 8 lines]
>>
>> Tom
RobinS - 24 Apr 2007 08:12 GMT
>> First, ignore dbahooker; he's a troll.
>>
> Huh?
dbahooker responded to your post. He has a bunch of aliases (susiedba,
todos menos, larry linson (jr), aaron kempf, to start with), and is a known
troll in this group.
http://en.wikipedia.org/wiki/Internet_troll
>> Second, does your SQLServer have both Windows Security and SQLServer
>> security enabled?
[quoted text clipped - 8 lines]
> "Persist Security Info=False;Data Source=Server;Initial Catalog=ft;User
> ID=xxx;Password=yyyy;"
If you are using Windows Integrated security, this should look more like
this:
Data Source=sqlservername;Initial Catalog=ft;Integrated Security=True
The connection string you are using is for SQLServer security. Maybe that's
the problem.
> Dim objConn As New SqlConnection(ConnectionString)
> Dim CommandText As String = "AddEmployees"
[quoted text clipped - 9 lines]
>
> Tom
I used to get "provider cannot be found" when I was running against Access,
and I didn't have the MDAC components installed. I'm assuming you are
including references to the appropriate .Net components, System.Data, and
maybe System.Data.SqlClient?
Robin S.