Click here to Skip to main content
15,912,205 members
Home / Discussions / Database
   

Database

 
AnswerRe: ADO.NET related question Pin
Hunuman30-Oct-06 2:02
Hunuman30-Oct-06 2:02 
GeneralData Type Issue in Where Clause Pin
Brady Kelly30-Oct-06 0:13
Brady Kelly30-Oct-06 0:13 
JokeRe: Data Type Issue in Where Clause Pin
Rob Graham30-Oct-06 3:14
Rob Graham30-Oct-06 3:14 
Questionselect query filling 2 typed datasets Pin
steve_rm29-Oct-06 22:10
steve_rm29-Oct-06 22:10 
QuestionPurpose of SQL Server Jobs Pin
King Shez29-Oct-06 19:50
King Shez29-Oct-06 19:50 
AnswerRe: Purpose of SQL Server Jobs Pin
Eric Dahlvang30-Oct-06 3:13
Eric Dahlvang30-Oct-06 3:13 
Questionconnection cannot be made? Pin
Haoman1729-Oct-06 0:48
Haoman1729-Oct-06 0:48 
Questionconnecting to SQL express through ADO Pin
psasidisrcum28-Oct-06 11:54
psasidisrcum28-Oct-06 11:54 
Hi all,

I have SQL server express edition 2005 installed on my computer and using VB in MS Access to run some queries. The VB function looks something like this..

Dim dataRS As New ADODB.Recordset
Dim cnnSQL As New ADODB.Connection

Set cnnSQL = New ADODB.Connection
cnnSQL.ConnectionString = "Provider=SQLNCLI;Server=.\SQLExpress;Database=TestDB;Trusted_Connection=yes;"

cnnSQL.Properties("Integrated Security").Value = "SSPI"
cnnSQL.Open

dataRS.Open "SELECT dbo_Table_1.* FROM dbo_Table_1", cnnSQL, adOpenStatic, adLockOptimistic


The code fails though, on the last line with message
"Invalid object name 'dbo_Table_1'"
(yes, I verified that the table actually does exist in the DB)

I must be doing something wrong with the connection string but all the things that I've tried so far haven't worked.. Can anyone offer any suggestions?

Thanks in advance,
AnswerRe: connecting to SQL express through ADO Pin
Jerry Hammond28-Oct-06 16:16
Jerry Hammond28-Oct-06 16:16 
GeneralRe: connecting to SQL express through ADO Pin
Colin Angus Mackay29-Oct-06 3:52
Colin Angus Mackay29-Oct-06 3:52 
GeneralRe: connecting to SQL express through ADO Pin
Jerry Hammond29-Oct-06 4:50
Jerry Hammond29-Oct-06 4:50 
GeneralRe: connecting to SQL express through ADO Pin
Colin Angus Mackay29-Oct-06 5:04
Colin Angus Mackay29-Oct-06 5:04 
GeneralRe: connecting to SQL express through ADO Pin
Jerry Hammond29-Oct-06 5:11
Jerry Hammond29-Oct-06 5:11 
AnswerRe: connecting to SQL express through ADO Pin
S Douglas29-Oct-06 1:55
professionalS Douglas29-Oct-06 1:55 
GeneralRe: connecting to SQL express through ADO Pin
Colin Angus Mackay29-Oct-06 3:56
Colin Angus Mackay29-Oct-06 3:56 
GeneralRe: connecting to SQL express through ADO Pin
S Douglas29-Oct-06 18:12
professionalS Douglas29-Oct-06 18:12 
AnswerRe: connecting to SQL express through ADO Pin
Colin Angus Mackay29-Oct-06 3:54
Colin Angus Mackay29-Oct-06 3:54 
QuestionSQLXML DiffGram question Pin
Diablo_m28-Oct-06 11:41
Diablo_m28-Oct-06 11:41 
QuestionRe: SQLXML DiffGram question Pin
Diablo_m28-Oct-06 21:42
Diablo_m28-Oct-06 21:42 
QuestionDeployment of managed UDTs - best approach in updating code in use? Pin
Mike Heffernan28-Oct-06 8:20
Mike Heffernan28-Oct-06 8:20 
QuestionSQL Server 2005. Pin
aditya chitti28-Oct-06 4:17
aditya chitti28-Oct-06 4:17 
AnswerRe: SQL Server 2005. Pin
Rob Graham28-Oct-06 4:34
Rob Graham28-Oct-06 4:34 
AnswerRe: SQL Server 2005. Pin
Jerry Hammond28-Oct-06 6:46
Jerry Hammond28-Oct-06 6:46 
AnswerRe: SQL Server 2005. Pin
Hunuman30-Oct-06 4:57
Hunuman30-Oct-06 4:57 
QuestionInstalling Recrutment Database. Pin
aditya chitti28-Oct-06 4:16
aditya chitti28-Oct-06 4:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.