Forum Replies Created

Viewing 15 posts - 8,101 through 8,115 (of 13,460 total)

  • RE: Table Backup

    remember some tables cannot be truly 100% "backed up" all by itself due to referential constraints....any foreign keys to lookup tables, tables for city/state/etc, would require those related tables to...

  • RE: TEMPDB issue.....

    AppSup_dba (2/15/2011)


    I am running a insert query that joins some 6 tables and fetches 3LAKH rows into another table. My TEMPDB size more than 40GB. I am still getting error

    Could...

  • RE: Export One Table Data to single excel file with multiple excel worksheets

    Phil posted exactly what i would have...i would immediately question why your end users are using a tool to view data that is limited to 65536 rows of data;

    The advantage...

  • RE: TSQL Brain Teaser (for me at least)

    CELKO (2/14/2011)


    the scoring starts with 100 points.

    1) Did the DDL follow ISO standards and have no dialect? +25

    2) Did it have no key?? -25

    3) Did you use ISO sex...

  • RE: TSQL Brain Teaser (for me at least)

    ok in that case, here is a solid example;

    With PersonInfo(PersonID,Name,Gender)

    As

    (

    SELECT 1, 'Fred','M' UNION ALL

    SELECT 42,'Lisa','F' UNION ALL

    SELECT 99, 'Pam','F' UNION ALL

    SELECT 8,'Peter','M'

    ),

    MyGuys As

    (

    SELECT Name FROM...

  • RE: TSQL Brain Teaser (for me at least)

    kev this really looks a little bit like a homework question, so I'll give some hints instead of a full answer, unless you confirm it's not homework 🙂

    what you ...

  • RE: Variables with sp_addlinkedserver?

    ahh i see it.

    anything between two single quotes is a literal string...

    so this part never gest substituted with your values:

    EXEC master.dbo.sp_addlinkedserver @server = '@ServerName,@Port_nbr'

    try this instead see how i added...

  • RE: Variables with sp_addlinkedserver?

    you have to declare and assign the variables for TSQL:

    if this is all in TSQL, you might use a cursor like this:

    --#################################################################################################

    --Linked server Syntax for SQL Server With Alias

    --#################################################################################################

    declare

    @svname Nvarchar(64)

    declare...

  • RE: Shift pattern

    well, i would tackle it with a table defining the hours associated to a givin shift period:

    /*--results

    RightNow ...

  • RE: SQL Scheduling

    SQL will use all available cores unless you tell it not to; you can select it by right clicking the server>>Properties as seen below; my machine is a single proc...

  • RE: Connecting to SQL Server 2000

    every application I've ever seen always had the components of the connection string configurable...whether it's part of the GUI, or an ini/config file, the connection strings going to be configurable...they...

  • RE: Connecting to SQL Server 2000

    I believe the client queries port 1434 and the "SQL Server Browser Service" on the server tells the client which actual port to connect to; it does't try 1433 and...

  • RE: EXEC sp_change_users_login crash with 'WITHOUT LOGIN'

    hey neat;

    what you've done is create an "orphaned" user;

    inside the sys tables, a unique SID is assifned to every login or user; you may have encountered this when restoring a...

  • RE: Changing FILLFACTOR by Updating sys.indexes

    no you can't...all sys.* items are read only views; MS wanted to remove the ability to update meta data tables directly, because too many times an unintended consequence resulted in...

  • RE: Get last 7 hours of data with 0's

    instead of selecting from that table TBL_CYCLE_PARTS,

    you instead have to select from some sort of calendar table, with all possible times, and join THAT to your TBL_CYCLE_PARTS;

    this will work *i...

Viewing 15 posts - 8,101 through 8,115 (of 13,460 total)