Forum Replies Created

Viewing 15 posts - 76 through 90 (of 119 total)

  • RE: importing csv with different data type within the same column...HELP!!!!!!!!

    How are you importing this into SQL?

    Matt

  • RE: count by another count

    This should do it all in one query..

    select con.contact, count(con.contact) as CountOfContact from

    (select studentno, count(contactid) as Contact

    from StudentContact

    group by studentno) con

    group by con.contact

    order by count(con.contact) desc

    Hope this is what you...

  • RE: Management Studio did not Showing up?

    Okay, so why dont you install the client tools on your local machine?

    Matt

  • RE: count by another count

    Edited: Sorry, i mis-read your question.

  • RE: Management Studio did not Showing up?

    When you ran the SQL Server setup program did you select the option to install client tools?

    Thats why you dont have SQL Server Management Studio.

    Run the setup program again...

  • RE: TIMESTAMP column

    Im afraid so.

    And i think the TIMESTAMP data type name is a bit misleading.

    Matt.

  • RE: TIMESTAMP column

    The timestamp data type doesnt preserve time or date data. It is for versioning a row and is automatically populated when an insert or update takes place.

    Take a look at...

  • RE: Help combining date columns

    The following should do the trick:

    select convert(datetime, convert(varchar(4), birthyear) + '-' + convert(varchar(2), birthmonth) + '-' + convert(varchar(2), birthday))

    Matt.

  • RE: CASTing

    Thankyou Hanshi.

    Ive always wondered what the N was for. Thanks.

    Matt.

  • RE: CASTing

    The answer says it's cast as nvarchar(4000) initially, but i too dont see how?

    Am i missing something, or is there a typo?

    Matt

  • RE: Strange

    Are you restarting the service from withing SSMS?

    Are you a domain/local administrator on the server?

    Matt

  • RE: Hide SQL Script in SP

    Paul,

    Try this

    create procedure dbo.myTestProc with encryption

    ....

    That should encrypt the actual contents of the stored proc so the sql behind it cant be viewed. Obviously make sure this is only...

  • RE: Activity logs in SQL Server 2005

    I think your best bet for this would be to create some Server DDL Triggers that monitor the creating/deletion of logins, tables and most objects.

    The following MSDN article should help:...

  • RE: Switching database context

    How about using dynamic sql to generage your query within the loop?

    For example:

    loop

    begin

    set @sql_str='select * from mydatabase.dbo.mytable'

    exec sp_executesql @sql_str

    end

    Or have i misunderstood your question?

    Matt

  • RE: UMS Error

    Maybe this should be moved to the correct forum.

    Out of curiosity, what is UMS ?

    Matt.

Viewing 15 posts - 76 through 90 (of 119 total)