Forum Replies Created

Viewing 15 posts - 631 through 645 (of 1,065 total)

  • RE: Log Shipping with New Filegroup

    I'm sure I've successfully added files to a database before, and they have been propagated by log shipping.

    Does the same drive letter/folder for the filegroup exist on the secondary server?

  • RE: Create SQL Instance using SMO and VB.Net

    Despite the attitude, I'll add my 2p worth.

    You can't install from within SMO, but from within Visual Studio, you can create a process to call the SQL Express bootstapper, and...

  • RE: Question about shrinking a SQL 2000 database

    What command are you using to shrink the database?

    I suspect you are using DBCC SHRINKDB, which will not shrink the database file smaller than the original allocation size, which I...

  • RE: Checking comuter name that logged in?

    How to get that info somewhere when a user logs in to the sql server management console is what Im looking for.

    Look at SQL Profiler and the Login Event

  • RE: Dynamic Order By

    You can use a case statement e.g.

    ...

    ORDER BY

    CASE @sortby

    WHEN 'FirstName' THEN u.FirstName

    WHEN 'LastName' THEN u.LastName

    ...

    end

    If you are going to provide the ability to sort on columns that have...

  • RE: Checking comuter name that logged in?

    Select host_name() should give you the name of the workstation initiating the connection.

    Note... if this is a web application, then the connection will be initiated from the web server, so...

  • RE: dynamic querry error

    The SQL being run by sp_executesql is executed in a different process to the rest of your script, so @docTable isn't available to sp_executesql.

    You will need to include the creation...

  • RE: Can many inserts cause a table lock?

    3. Am I right that select ______ from _____with (NoLock) read uncommitted data too?

    Yes it will read uncommitted data

    From BOL

    NOLOCK Do not issue shared locks and do not honor...

  • RE: Merge replication with sql server 2005 clustering

    They are both publisher and subscriber.

    For this case:-

    On cluster 1 two databases are published on to secondary cluster.

    Cluster 1 is the publisher and cluster 2 is the subscriber

    For this...

  • RE: Datatype Conversion Question

    That is exactly what I would expect, as that is the character representation of the hex string i.e. Hex DE is "Þ", Hex FE is "þ" etc.

    select convert(char(16),0x50515253545556575859606162636465)

    would yield...

  • RE: Datatype Conversion Question

    If you prefix the guid with 0x, you can convert it to a char, i.e.:-

    select convert(char(16),0xDEFE4787AC2D4351BDA6FFCA07CC0D00)

  • RE: Let's talk clustering ...

    As far as I'm aware, there is no issue with installing different version if SQL on a cluster, and you don't even have to do them in any particular sequence.

    I...

  • RE: How to toggle between a row and all other rows

    but OR or AND didn't do the trick

    Why didn't they do the trick, this should work

    WHERE (@Show4 = 'y' AND ID = 4) or (@show4 'y'...

  • RE: Scripting Sql Server 2000 Agent Jobs

    Right click Jobs, click All Tasks, Generate SQL Script.

    That will script all the jobs on the server.

  • RE: Query is performing so slow after encryption

    I think you actually need to use:-

    Select * from [MYTABLE] where [MYCOLUMN]= [dbo].[the Function I created for Encryption]('THE VALUE')

Viewing 15 posts - 631 through 645 (of 1,065 total)