Unix Technical Forum

SQL Server Connection

This is a discussion on SQL Server Connection within the SQL Server forums, part of the Microsoft SQL Server category; --> I've developed a program in VB 6 and SQL Server using ADO connections. I am the owner of the ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 05:10 AM
Bill Reynolds
 
Posts: n/a
Default SQL Server Connection

I've developed a program in VB 6 and SQL Server using ADO connections.
I am the owner of the database objects associated with the program.
On one form, I have dropdown combos and dbgrids associated with ADO
data controls. The data controls are connected to the server with ADO
using Windows security, although I've also tried using SQL Server
security with a user ID/password for the program.

The problem is that the dropdowns and grids populate on the
development machine with no problem, but fail to do so when deployed
to other machines on the same domain. I've set up the other users on
the server, giving them all the permissions I can think of without
success.

The development machine is running Windows 2000 and the targer machine
is running Windows XP.

Any ideas would be helpful.

TIA,
Bill Reynolds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 05:10 AM
Erland Sommarskog
 
Posts: n/a
Default Re: SQL Server Connection

Bill Reynolds (TruckeeBill@ltol.com) writes:
> I've developed a program in VB 6 and SQL Server using ADO connections.
> I am the owner of the database objects associated with the program.
> On one form, I have dropdown combos and dbgrids associated with ADO
> data controls. The data controls are connected to the server with ADO
> using Windows security, although I've also tried using SQL Server
> security with a user ID/password for the program.
>
> The problem is that the dropdowns and grids populate on the
> development machine with no problem, but fail to do so when deployed
> to other machines on the same domain. I've set up the other users on
> the server, giving them all the permissions I can think of without
> success.
>
> The development machine is running Windows 2000 and the targer machine
> is running Windows XP.


I guess this is the problem with these Rapid Application Development
techniques. When they work, they work, but when the program fails, you
have no clue what is going on.

There is too little information in your message to say what the problem
might be withour resorting to wild guesses.

The first point would be to augment your program to do proper error
checking. Once you have that rolling, you can find out if there is a
permissions problem. (Of course, you should test your error-handling
with a known error.)

If you have access to the SQL Server Profiler, you can also use this
tool to see what statements that is being generated, and you can also
trace for errors.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 05:12 AM
Bill Reynolds
 
Posts: n/a
Default Re: SQL Server Connection

Thanks for your response. The problem was typical for VB--the
packaging and deployment wizard didn't include all the files I needed
for SQL Server. I sure wish there were enough Delphi jobs around that
I didn't have to regress to VB. Anyway, after installing the SQL
Server client, the connection worked fine. Now all I have to do is
get Crystal working right.

Bill Reynolds

Erland Sommarskog <esquel@sommarskog.se> wrote in message news:<Xns955DEFEBD1B81Yazorman@127.0.0.1>...
> Bill Reynolds (TruckeeBill@ltol.com) writes:
> > I've developed a program in VB 6 and SQL Server using ADO connections.
> > I am the owner of the database objects associated with the program.
> > On one form, I have dropdown combos and dbgrids associated with ADO
> > data controls. The data controls are connected to the server with ADO
> > using Windows security, although I've also tried using SQL Server
> > security with a user ID/password for the program.
> >
> > The problem is that the dropdowns and grids populate on the
> > development machine with no problem, but fail to do so when deployed
> > to other machines on the same domain. I've set up the other users on
> > the server, giving them all the permissions I can think of without
> > success.
> >
> > The development machine is running Windows 2000 and the targer machine
> > is running Windows XP.

>
> I guess this is the problem with these Rapid Application Development
> techniques. When they work, they work, but when the program fails, you
> have no clue what is going on.
>
> There is too little information in your message to say what the problem
> might be withour resorting to wild guesses.
>
> The first point would be to augment your program to do proper error
> checking. Once you have that rolling, you can find out if there is a
> permissions problem. (Of course, you should test your error-handling
> with a known error.)
>
> If you have access to the SQL Server Profiler, you can also use this
> tool to see what statements that is being generated, and you can also
> trace for errors.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:55 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com