Viewing 15 posts - 4,306 through 4,320 (of 6,036 total)
select *
from master.dbo.sysdatabases
where DATABASEPROPERTYEX(name, 'Status') = 'OnLine'
May 15, 2007 at 5:53 pm
Read about sysdatabases system table in BOL.
Everything is there.
May 15, 2007 at 4:07 pm
So, what's the question?
Is it "bcp" command you are after?
May 13, 2007 at 10:14 pm
Are you sure the script you posted is SQL, not VB?
May 13, 2007 at 8:19 pm
If those quotes are in column names then use [] for column names.
If they are in data you scripted then duplicate quotes when you are scripting data.
Like this:
select REPLACE(ColName, '''',...
May 13, 2007 at 8:16 pm
Query Analyzer.
Plenty of options available in "New" submenu.
And right-clicks on objects in Object Browser (press F8 to open it) will help you to build scripts you need.
May 13, 2007 at 2:29 pm
I'm afraid LDAP lookup times slower than retrieving next row from recordset.
So, using cursor or WHILE loop not gonna slow down your procedure.
Probably you need to revise the whole design...
May 11, 2007 at 8:23 am
Set up a trigger FOR DELETE to record deleted records + some audit information into another table.
May 11, 2007 at 7:59 am
You must declare your variable as OUTPUT parameter for sp_executesql.
I believe it's the only bit you're missing.
May 11, 2007 at 5:31 am
Yes, it works.
Just today there was a reference to this article:
May 11, 2007 at 4:55 am
Read BOL about sp_executesql.
May 11, 2007 at 4:23 am
Wouldn't it be easier to check for existence BEFORE?
IF Object_ID('v_guk_welcome_letter_active_member') IS NOT NULL
... your script ...
May 11, 2007 at 4:07 am
Why you decided you need function?
What's wrong with procedures?
----------------------
Create procedure aftest
@username varchar (10),
@EmailExists bit OUTPUT
as
DECLARE
@sql varchar (500)
SELECT @sql =
'Select
FROM
OpenQuery(ADSI, ''SELECT mail...
May 10, 2007 at 10:52 pm
Condition
where a.field1 = 1
and a.field2 = 2
makes all rows from table1 mandatory, so LEFT JOIN from second query does not work.
Not sure what do you really mean but probably...
May 10, 2007 at 10:43 pm
Viewing 15 posts - 4,306 through 4,320 (of 6,036 total)