Forum Replies Created

Viewing 15 posts - 9,421 through 9,435 (of 13,469 total)

  • RE: Simple Update using three tables. . .

    Donato this is how i usually update a table from multiple sources...note the commented SELECT statement so i can run the bottom portion to test before and after:

    SET XACT_ABORT ON

    BEGIN...

  • RE: DBCC linked server

    i have this in my snippets as teh way to run DBCC commands on linked servers:

    SELECT * FROM OPENQUERY( [linked server],'SET FMTONLY OFF; EXEC (''USE DATABASE; DBCC showfilestats WITH NO_INFOMSGS...

  • RE: bulk insert error

    i've seen this when the file you are processing comes from a unix type source...instead of slash-n for the row terminator, which looks for CHAR(13) + CHAR(10), try changing your...

  • RE: select into takes forever from remote server.

    linked servers are slow.

    usually a SELECT from a linked server, if it is joining on a local table, will copy the ENTIRE table from the linked server into your local...

  • RE: Why calculated fields?

    i most often add a persisted calculated field for indexing purposes.

    I've used it to pull out a substring from a field which is often searched, as well as dates with...

  • RE: LOGINS - Who Created it and When

    some powerful thread pruning occurred;

    i had posted the following and then reported them to the SSC gods:

    i'm thinking that chinnu.saha and pinky.bd420 are bots that are just designed to...

  • RE: Use generated identity for another column within the same insert

    still not so bad, but the same solution: the end users will have to enter/select the prefix and suffix, which could even have defaults on them, that's all:

    CREATE TABLE EXAMPLE(

    id...

  • RE: Use generated identity for another column within the same insert

    one easy way is instead of allowing a vlaue to be entered for your PONumber, make it a calcualted column instead:

    CREATE TABLE Example(

    ID int identity(1,1) primary key,

    PONumber AS 'SomePrefix' +...

  • RE: Dynamic SQL

    _ms65g_ (5/19/2010)


    Hi,

    This statement is correct:

    SELECT 'String'

    But when I try to use dynamic it not be correct, How can I do that?

    EXECUTE('SELECT 'String'')

    Thanks!

    every quote that exists between your forst and last...

  • RE: select top 2000 from table_name cause tempdb full

    you've got to look at the execution plan to be sure...

    a simple SELECT TOP 2000 FROM SOMETABLE would probably not bloat temp db, but throw in an ORDER BY, and...

  • RE: Pricing EDI Feed Processing System

    I currently maintain a system that does EDI 864 records;(?? didn't really notice they are numbered)

    if you have the schema and sample EDI file, I could look to see if...

  • RE: SQL Server 2005 training

    I've been in touch with some of the guys at a SQLServerCentral related site http://www.sqlshare.com/ to build on skills i do not get to use every day.

    I met a few...

  • RE: Table hierachy using sql query

    this caught my eye, i've done a lot of stuff with following foreign key chains;

    how would you expect the table T2 to be displayed? it has two children inder it...would...

  • RE: Create a sql login with access to all the databases

    just like sa and Builtin\Administrators, and login you create that is part of the sysadmin will inherit the ability to do anything to any database.

    CREATE LOGIN [superman] WITH PASSWORD=N'NotARealPassword',

    DEFAULT_DATABASE=[master],...

  • RE: Value dependent User Key

    it looks to me that although logically the unique key is just two columns, in actuality for db purposes, shouldn't it include the deleted column as well?

    Field1 ...

Viewing 15 posts - 9,421 through 9,435 (of 13,469 total)