Forum Replies Created

Viewing 15 posts - 14,866 through 14,880 (of 14,953 total)

  • RE: SQL-DMO

    Just to add insult to ... well, insult ... I would like to second the motion to have some sort of "does the question even make sense in English" type...

  • RE: Check if temporary table exists or not?

    If you want to do that, create a temp table with ## instead of #, and then make sure to drop it when you're done with it. Those can...

  • RE: Running Multiple Instances on one server

    You can use sp_configure to set an affinity mask for the server instance.

    See:

    ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/5823ba29-a75d-4b3e-ba7b-421c07ab3ac1.htm

    in Books Online for details.

  • RE: a good way to compare added value and previous value?

    I don't think I understand your example and question. Why do you want the rows you want, and not also want the one that has a 1 in the...

  • RE: Updating a View

    The one time I had a view that had "select *" in it, and needed that, and the table changed and I had to update it, I right clicked the...

  • RE: Manipulating Data

    Use a Numbers table.

    create table dbo.Numbers (Number int identity(0,1) primary key)

    go

    set nocount on

    insert dbo.Numbers default values

    go 10000

    insert into finaltable (PK)

    select cast(pidkey as int) + number

    from dbo.Numbers

    inner join dbo.tblKey

    on number <=...

  • RE: Help with a query

    Modify the temp table definition by adding:

    DateDay as cast(convert(varchar(25), [date], 101) as datetime),

    Then run your inserts, and try:

    select top 1 #rr.date, #rr.session

    from #rr

    inner join

    (select dateday, session

    from #rr

    except

    select dateday, session

    from #rr

    where...

  • RE: Need help converting Access query to T-SQL

    Does that mean it worked? Or just got you far enough along to make it work on your own? (I'm curious about how well I remember how Access...

  • RE: How to expand this variable for the query to work

    Ah. Makes sense now. Yeah, a few miliseconds here and there probably won't matter much if the whole query takes several seconds in some cases.

    I'll stick with the...

  • RE: Querying data data type

    It seems to me that you could use:

    select *

    from currenttable

    where col1 between 0 and 255

    and col1 = floor(col1)

    That would give you all the rows that are TinyInt.

    Move those to the...

  • RE: Need help converting Access query to T-SQL

    I'm not totally sure, since I can't run the original and the conversion and make sure they get the same results from the same data, but try this:

    case

    when

    [DBA_cs_project].[creator_id] Like...

  • RE: Sentence Where it's not working!

    Also, as per the other post here, I'd recommend moving the stuff you have in "HAVING" up to "WHERE". That will make the whole thing a little bit faster.

  • RE: Sentence Where it's not working!

    The reason your Where clause isn't working as expected is the OR statements need to be in parenthesis. Add an open paren "(" before the first "YEAR" and ")"...

  • RE: Importing Data from SQL Server Tables to Sql Server databsae

    Since I'm not a C# programmer, I can't help with that part. I'd say just open up the Business Intelligence Studio and create an SSIS package and start working...

  • RE: General security questions....

    In Management Studio, open up the database, open up the Security branch, open Users, right-click the user you want to edit permissions for, open the Securables tab, use Add to...

Viewing 15 posts - 14,866 through 14,880 (of 14,953 total)