Forum Replies Created

Viewing 15 posts - 2,761 through 2,775 (of 6,397 total)

  • RE: Select statement with condition.

    select *,case when (fname is not null) and (lname is not null) then fname+'.'+lname

    else isnull(fname,lname)

    end AS employee_Name

  • RE: error

    Well then you will need to write a command line based application which interfaces with SQL SMO and script out your database to a file.

    As detailed, do a search for...

  • RE: error

    Do you have a script in the location c:\script.sql which contains the database schema and data to create a new copy of the CZ database?

    Or

    Do you want to export the...

  • RE: error

    Yes, but if you read the whole thing, you will see that Pinal Dave has run the SSMS GUI tool, saved the file as c:\script.sql and is then using the...

  • RE: Good SQL Server 2012 book for DBA.

    I have that in paper back edition.

    I have not had time to use it yet as things on 2012 for us have slowed down quite a bit, but I also...

  • RE: error

    They you need to look at writing a command line program which interfaces with the SQL SMO objects to pull out the DDL of the database.

  • RE: Track Database growth

    You could as well, depending how often you read the default trace and its limited storage space, create a custom proc which loops through the system tables and dumps the...

  • RE: SQL Deadlocks

    Do you have the deadlock XML in the error log, should be many many lines that looks like this

    <TextData><deadlock-list>

    <deadlock victim="process53b9288">

    <process-list>

    <process id="process53b9288" taskpriority="0" logused="476" waitresource="KEY:...

  • RE: Do I need a linked server if both databases reside within the same SQL Named Instance?

    If they exist on the same instance no, use cross database queries

    Like the following.

    INSERT INTO DatabaseA.dbo.Mytable SELECT Col1, Col2 FROM DatabaseB.dbo.MyTable

    If the database was on a different server, then yes...

  • RE: How can I find who/what process dropped view/table from my sql server 2008 database ?

    Default Trace - A Beginner's Guide - http://www.sqlservercentral.com/articles/SQL+Server+2005/64547/

    If the event is no longer in the trace then and you dont have auditing like DDL triggers, extended events setup then your...

  • RE: Spotlight On SQL Server

    Is everything on the local LAN or do you use a hosting provider for your SQL environment?

    If everything is local, install just the client on the users machines and ensure...

  • RE: error

    -i is an input file which means you want to use that file to run it against the DB, not that you want to script out the DB to the...

  • RE: LOG SHIPPING by two different systemt architecture?

    Yes, or downgrade your secondary to 2008 R2.

  • RE: SQL Deadlocks

    Do you have traceflag 1222 enabled?

    If so can you post the deadlock graph from the error log

    If not run

    DBCC TRACEON (1222, -1)

    and then post the graphs once a deadlock has...

  • RE: LOG SHIPPING by two different systemt architecture?

    Yes, 2008 R2 to 2012 will work, but it can only be used for 1 way, once you make the 2012 instance active (WITH RECOVERY) you will no longer be...

Viewing 15 posts - 2,761 through 2,775 (of 6,397 total)