Forum Replies Created

Viewing 15 posts - 1,381 through 1,395 (of 1,404 total)

  • RE: Convert a string with an array of variables?

    Alan.B (3/30/2016)


    This is the kind of thing that you can do with a Translate function (which T-SQL does not have). I generally don't like scalar UDFs but this guy is...

  • RE: Convert a string with an array of variables?

    Phil Parkin (3/30/2016)


    Kevlarmpowered (3/30/2016)


    Thanks... I knew there had to be an easier way. I will check to see if the 8K is installed on that server or not. ...

  • RE: Running Totals with window function

    Thank you Sachin and Jacob. From my initial dev testing, this appears to do the trick. Now we see if the QA team can break it ...

    I...

  • RE: Dealing with large tables (Financial transactions)

    Emil B (3/14/2016)


    ... the table has about 90mlns of rows with 20 GB data space and 26 GB index space ...

    The cleverer peepels here will probably shoot me down on...

  • RE: Move to new row

    girl_bj (3/14/2016)


    The type of column "" conflicts with the type of other columns specified in the UNPIVOT list.

    The datatypes of your source columns does not match. Find the biggest...

  • RE: Move to new row

    This looks like a simple UNPIVOT requirement

    CREATE TABLE #temp (

    ID VARCHAR(100)

    , ResultA VARCHAR(100)

    , ResultB...

  • RE: Extracting only Deadlock details from ErrorLog.

    You could also pass the filter directly to xp_readerrorlog.

    See this post ... http://www.mssqltips.com/sqlservertip/1476/reading-the-sql-server-log-files-using-tsql/

  • RE: How to select top 10 records from 2 distinct groups

    IBeDatMan (3/3/2016)

    Thanks for taking a stab at this. I modified your code for my purposes but I get an error: Syntax error, expected something like a name or a...

  • RE: How to select top 10 records from 2 distinct groups

    The following code is a basic template that will get you what you are looking for.

    DECLARE @SampleSize INT = 10;

    SELECT *

    FROM (

    SELECT CUSTOMER_ID

    ...

  • RE: BIG HELP Needed!!

    It's been more than 10 years since I last worked on Access.

    That said, the scenario you described was not an unfamiliar one.

    The solution was to create a table that held...

  • RE: SQL Replication

    MysteryJimbo (2/24/2012)


    DesNorton (2/24/2012)


    I run the following in a batch file on the subscriber to try and initialise the subscription:

    REM -- Declare the variables.

    SET Publisher=PPWAPPSRV01

    SET Publication=VHS

    SET PublicationDB=HBH_VHS

    SET PublisherLogin=sa

    SET Publisherpass=*****

    SET Subscriber=TESTSQL\VHS

    SET SubscriptionDB=VHS...

  • RE: SQL Replication

    subscriber is listed correctly in

    select subscriber_server from dbo.sysmergesubscriptions

  • RE: SQL Replication

    Removed subscription at subscriber then at publisher.

    Added at publisher then at subscriber.

    Still no info for subscriber listed.

    Gonna start following sys.sp_ trail to see what gets done. Maybe error gracefully...

  • RE: SQL Replication

    MysteryJimbo (2/24/2012)


    Thats where I believe it is done. I'm wondering if by overriding the host in sp_addmergesubscription its done something different. Have you tried it without that parameter?

    Originally...

  • RE: SQL Replication

    MysteryJimbo (2/24/2012)


    Is the server register in the publisher?

    exec sp_helpsubscriberinfo

    Also check for an entry in sys.servers as it should have one on the publisher

    exec sp_helpsubscriberinfo comes back empty

    select * from...

Viewing 15 posts - 1,381 through 1,395 (of 1,404 total)