all groups > sql server programming > december 2004 > threads for sunday december 26
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Getting the sa password with SQLDMO
Posted by Otis at 12/26/2004 10:47:31 PM
Hi,
I have a failsafe routine that checks the sa password to make sure that it
has not been changed. I can reset it like this:
If objLogin.Name = "sa" Then objLogin.SetPassword vbNullString,
"Somepassword"
But it seems a little sloppy to be setting this password again and again
when it n... more >>
Different where clause depending on parameter values
Posted by larzeb at 12/26/2004 3:32:42 PM
The following SP had 3 parameters. The first one is never NULL, but
the 2nd and 3rd may be NULL. I do not know how to it other than the
illustration below.
Any suggestions? TIA
Lars
Create Procedure abc
@A int,
@B varchar(10) = NULL,
@C varchar(50 = NULL
AS
IF @B IS NULL AND @C IS... more >>
How to drop distribution database?
Posted by Przemo at 12/26/2004 2:07:03 PM
After disabling publishions and distribution on a server there still is a
database "distribution" which cannot be dropped or deteached due to Error
3724 "Cannot drop database because it is being used for replication". But
there is NO replication on this server.
When I configure server for p... more >>
SQL Syntax Help
Posted by NathanV at 12/26/2004 1:09:01 PM
I need some help with a SQL statement (SQL Server 2k).
I have three tables, an Artists table which holds user info, a Types table
which holds the TypeID and Description for different types (I.e. visual,
musician, etc) and an Artists_Types table, which stores Type_ID information
for each A... more >>
Combining rows
Posted by RickN at 12/26/2004 10:27:01 AM
Need help writing a SQL command to do the following
I have two tables, TableA and TableB
Table A has three columns:
code sequence description
and values:
1, a, descparta
1, b, descpartb
1,c, descpartc
2, a, descparta
3,a,descparta
3,b,descpartb
I want to combine all the description valu... more >>
View Diagram Pane - how save layout after I change it? 2000
Posted by L Mehl at 12/26/2004 9:39:15 AM
Hello --
Is there a way to configure 2000 so it will save a view layout after I
change it in the diagram pane?
Thanks for any help.
Larry Mehl
... more >>
Transaction replication problem
Posted by Przemo at 12/26/2004 9:33:02 AM
Hi,
I am configuring transaction replication on 2 computers, using no-doman
accounts. Account I use is the same on 2 machines, same are passwords.
SELECT @@servername is properly executed on these 2 computers
Distributor and publicator configures with no error. When I add a
publication, dur... more >>
temp table troubles
Posted by Nickl at 12/26/2004 6:15:02 AM
I am trying to create a temp table using dynamic SQL in a stored procedure. I
then would like to reference the temp table in a second Stored Procedure
using a cursor to Wrap each record in XML tags (there is conditional
variation between the records, hence the cursor). I am able to generate th... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Changing account for SQLServer problem
Posted by Przemo at 12/26/2004 4:27:01 AM
Hi,
I cann't change account for sqlserver service as well as for a sql agent to
different than System. I get a message that such a account does not exist.
But it really exists. Previously I have changes WindowsXP computer name and
this problem occured immediately after that.
Przemo... more >>
|