Forum Replies Created

Viewing 15 posts - 151 through 165 (of 323 total)

  • RE: alternatives to SQL Backup

    In our backup stratergy, we backup to disk, and allow the tape backup utility to backup the disk backups. I wouldn't recommend ever getting SQL Server to backup directly to tape,...

  • RE: How to change the size of a user defined data type in SQL Server 2000 Enterprise Manager.

    Using SQL-DMO objects, you can access the ListBoundColumns method on the UserDefinedDatatype Object.

    Read BOL and check out the Samples directory for details about using DMO. The object heirarchy is displayed...

  • RE: What to do to clean transaction logs in back up directory

    Are they really old logs? Maybe SQL Server doesnt even know they exist. The Maintenance Plans dont look at the disk to see what files are there, they use the...

  • RE: Algorithams using T-SQL

    If you want to make life really diffiicult and you had a lot of lengthy data to check, you could use Full Text Searching, which can return a RANK for...

  • RE: How to test availability of a server in T-SQL

    mmm putting passwords in stored procedures is such a bad idea.

    What's wrong with doing a little error handling?

    IF EXISTS(SELECT top 1 * FROM [mylinkedserver].[master].[dbo].[sysdatabases])

    BEGIN

      -- mylinkedserver is up and...

  • RE: Updating a BIG table - with a twist

    You have a table WITHOUT an Identity column ? Is there a Primary key at all ?

    Query Analyzer with a WHERE clause would be the way to go. If your...

  • RE: SQL Server Agent wont start due to interal Windows Error

    In SQL EM , right click SQL Agent and Display Error Log. You might find more information there. Or check SQL Server's logs. Or Check the Windows Event Viewer.

    One of...

  • RE: backup master,msdb and tempdb databases issues

    Make sure you test restoring. You'll know then if your plans are worth while.

    fhanlon is right. TempDB shouldn't be backed up. Nothing that's in there needs to be kept, and...

  • RE: User Time out

    maybe off track but: Is your app closing the connections gracefully?

    If you are using ADO.Net you need to make sure you .Close() the connection before destroying the object, otherwise it...

  • RE: Table Ownership

    Want everything to be consistant? Allways preface your objects with their owner, both on create and select/exec.

    CREATE PROC dbo.MyStoredProc

    CREATE TABLE dbo.MyTable

    EXEC dbo.MyStoredProc

    SELECT * FROM dbo.MyTable

    Check to make sure that your...

  • RE: Combining all rows from a single column without COALESCE

    You can do it without COALESCE if you use an ISNULL function instead:

    declare @names varchar(500)

    select @names = IsNull(@names,'') + ',' + IsNull(fname,'') from Users

    select @names

    But as adrian_rf pointed out. If...

  • RE: How do I query Self Referencing Tables

    In 7 / 2000 you'll need a temporary table and a loop to get the full heirarchy. Infinite loops are great this way too.

    I believe 2005 can create a view...

  • RE: How to cancel Recovery process

    Hmm. If you cancelled a process, SQL Server would have started rolling back the changes. If you shutdown SQL Server during this process, then when it boots it's going to...

  • RE: Incorrect rowcount when viewing table properties

    A rowcount can be done in two ways:

    Most accurate and slowest: SELECT COUNT(*) FROM MyTABLE

    Less accurate but instant: SELECT ROWCNT FROM Sysindexes WHERE ID = ObjectID('MyTable') AND Name = 'MyTable'

    That rowcount is...

  • RE: Is this error something to worry about???...

    Do they need to be listed in Active Directory?

    If they are local developer instances, its probably not neccessary to pollute the AD with them.

    I'm not too familiar with AD/SQL...

Viewing 15 posts - 151 through 165 (of 323 total)