Forum Replies Created

Viewing 15 posts - 12,901 through 12,915 (of 14,953 total)

  • RE: Need help import xsd

    SSIS (Integration Services) can be set up to import batches of files. I'd recommend looking into that as an option.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: help?Question about a Stored Procedure.

    rsheppick (7/10/2008)


    Ken,

    After posting this i figured that out...

    The weird part, the website guys are using some sort of php script to connect and obtain the infomation from me.

    If i...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: need help to learn writing Stored Proc

    You don't need the quotes in the execute command. The parameters are integers, not strings.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: how to use database in stored procedure

    A possible way to do this a bit more easily than from a VB app, is do it in Management Studio. You can even run the script on one...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Database Accessing Auditing

    The best way to do this is run a trace on the server. You can set that up with either the Profiler (you can get to that from Tools...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: SQL 2005 running on Windows 2008 - problem with MSDTC

    Then you'll need to make sure the account running it has access to RPC and to the services associated with MSDTC.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Dumb Question!

    And now I know that you've seen "Harvey". And you know that I know that you've seen it. And I know that you know that I know ......

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Date manipulation

    Look up "DateAdd" in Books Online.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: T-SQL query runs slower for particular user accounts

    Well, for one thing, left outer join is usually faster than Where Not In.

    Second, you're speeding it up with all the NoLock hints. Risking dirty reads (potential for junk/wrong...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: DTS and Integration Services

    MSDN.com has an article on running DTS packages from SQL 2005, and on upgrading from DTS to SSIS. That's the best place to start.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: looping sub query

    I think I would do the second table more like a ledger.

    create table Trade_Details (

    DetailID int identity primary key,

    DetailDate datetime not null default(getdate()),

    TradeID not null references dbo.Trades(TradeID),

    TeamID int not null...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Complex Case statement

    Try this:

    declare @ipinput char(5)

    select *

    from dbo.ZipCodes

    where ZipCode = @ipinput

    and right(@ipinput, 1) in ('3', '7', '8')

    First, you should store Zip Codes as character data, not as integers. Some Zips begin...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Split data

    There's an article here: http://www.sqlservercentral.com/articles/TSQL/62867/

    It has data on efficient string splitting.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: removal of multiple joins

    This will probably perform better:

    select a.*,b.col1, b.col2, b.col3

    from tablea a

    inner join tableb b

    on a.col1=b.col1

    union

    select a.*,c.col1, c.col2, c.col3

    from tablea a

    inner join tableb c

    on a.col2 = c.col2

    union

    select a.*,d.col1,...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Include the actual execution plan in the query analyser - Error

    Sounds to me like your copy of Management Studio may be corrupted. I'd uninstall and reinstall and see if that fixes it.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 15 posts - 12,901 through 12,915 (of 14,953 total)