Forum Replies Created

Viewing 15 posts - 12,856 through 12,870 (of 13,445 total)

  • RE: Is there a good way to understand the sysdatabases STATUS fields?

    you'll notice that this is really a way to store multiple values in a single data field....it kind of goes against the grain of a relational database...one field=one value and...

  • RE: Is there a good way to understand the sysdatabases STATUS fields?

    while I had the macro going for changing the data to a sql, here's the way to interpret STATUS2:

    SELECT name as DBNAME,STATUS2,

    CASE WHEN (STATUS2 &     16384)...

  • RE: Is there a good way to understand the sysdatabases STATUS fields?

    expanding on what David Web Posted, There's a SQL at the to help interpret what is on/off.

    typical results:

    DBNAMEAUTOCLOSE_(ALTER_DATABASE)

  • RE: Database In Use - Removing Users Quickly - How?

    assuming you know it is ok to kicke them out without ill effects, kill their connections with this procedure: put it in master;

    usage is simply sp_kill dbname

    typical results:

  • RE: Orcale to Sqlserver

    checksum() is just a function that returns a value...i like to think of it as being like MIN or MAX functions;

    you said there is nothing that makes the data unique...so...

  • RE: Allowing null in a foreign key

    maybe it's just a typo, or the FK automatically assumes the PK of the referenced table but I thought itshould it be this:

    CREATE TABLE dbo.Departments (

    DeptID INT IDENTITY NOT NULL PRIMARY...

  • RE: Orcale to Sqlserver

    could the entire row of each data be considered unique? or would there be multiple rows with identical data?

    basically, if you can't identify what makes the row unique, you can't...

  • RE: How can I extract Blobs back to .jpg files

    typically, you use SQL Server to store the blob, and something like ADO to do the actual stream-to-file operations.

    as far as i know, if you were to try and do...

  • RE: How to programmatically register a remote SQL Server?

    just wanted to confirm you must write to the registry at [HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\80\Tools\SQLEW\Registered Servers X\SQL Server Group],

    adding it to the .Default does not work, so forget that idea.

    much easier...

  • RE: How to programmatically register a remote SQL Server?

    i know you can export the registry key and port it to other machines;

    [HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\80\Tools\SQLEW\Registered Servers X\SQL Server Group], but to add the items via a program would basically...

  • RE: Help in bcp Utility

    not sure about bcp, but you can easily do it like this:

    insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0',

    'Excel 8.0;Database=D:\testing.xls;',

    'SELECT * FROM [Sheet1$]') select * from SQLServerTable

     

    insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0',

    'Excel...

  • RE: SQL 2005 backwards compatibilty

    if you have both SQL2005 and SQL 2000 , you can retore the 2005 on a 2005 instance, and then use SQL2000 DTS to connect to the 2005 server and...

  • RE: File groups and Data files

    if a table is assigned to a filegroup, it stays within that file group.

    if the filegroup is comprised of more than one physical file, when inserts occur, the data...

  • RE: Waht is SQL Server Native Mode?

    on a slight tangent, in sql 2005 i know there is a SQL Native Client, which is the provider that replaces SQLOLEDB to connect to a SQL instance...maybe he's trying...

  • RE: Stored Procedures Efficiencies vs Query Analyzer

    I seem to remember that the first time a query is run is typically the longest... SQL server builds an execution plan and saves it on the first time; subsequent...

Viewing 15 posts - 12,856 through 12,870 (of 13,445 total)