Viewing 12 posts - 256 through 267 (of 267 total)
-- Computername on which SQL server is running
SELECT 'MachineName: ' + CONVERT(char(20), SERVERPROPERTY( 'MachineName' ) )
-- Servername and Instance name of SQL Server
SELECT 'ServerName: ' + CONVERT(char(20), SERVERPROPERTY( 'Servername' ) )
/rockmoose
March 18, 2004 at 2:08 am
Hi,
You may have to deploy DMO - "SQL Distributed Managment Objects" on the client.
http://support.microsoft.com/default.aspx?scid=kb;EN-US;248241
http://support.microsoft.com/default.aspx?scid=kb;en-us;258157
/rockmoose
March 16, 2004 at 1:56 am
Ok, sorry did not read the post very accurately 🙂
I would go for INT and maybe put a constraint on the column only allowing 0 and 1 as values. Performancewise...
March 9, 2004 at 1:56 pm
The question about the (ab)use of Identity Columns as Keys...
My standpoint is:
Don't use them!. - Except: - You have a good understanding of relational database...
February 20, 2004 at 6:27 am
February 13, 2004 at 1:53 am
Probably you could set up the other server as a "Linked Server" and use SELECT INTO.
SELECT * INTO linkedserver.database.schema.TextTable FROM TextTable
Or create a copy of the table and use regular...
January 14, 2004 at 1:38 am
I seldom use a percentage for autogrow ether. When creating a database I make estimates for db initial size, and how much the db will grow over time.
Then I make...
January 14, 2004 at 1:21 am
try "is null" instead of "= null"
alter table ads
ADD CONSTRAINT
CK_ads_1 (not([ad_status] = 'approved, awaiting artwork files' and [approved_snapshot_id] is null))
if( null = null )
print 'null = null'
if( null is null...
January 13, 2004 at 2:24 am
Yes, that was what I meant.
/rockmoose
Franks example could be written ( more lazily, if you don't want to spec the table  as:
CREATE FUNCTION LargeOrderShippers...
January 12, 2004 at 4:15 am
You may consider using table valued function instead of a stored procedure.
If You need to join on the result returned from the sp.
/rockmoose
January 12, 2004 at 2:32 am
You can change the logical filename after the database has been restored.
ALTER DATABASE database MODIFY FILE (NAME = logical_file_name, NEWNAME = new_logical_name)
( see BOL: ALTER DATABASE )
/rockmoose
January 8, 2004 at 2:48 am
Viewing 12 posts - 256 through 267 (of 267 total)