Forum Replies Created

Viewing 15 posts - 286 through 300 (of 323 total)

  • RE: transactions & multicurrency

    If you use that query a lot, you might want to turn it into a view, make a cross join. You can then treat it like a normal table. and...

  • RE: Increment Field Value Automatically

    There will be five individuals inserting data into the table.  Each entry should automatically display the next increment number available for input.  No user will have their own sequence of...

  • RE: Joins - Best Practice

    I couldn't see any reason why that would be the case (unless you were joining on a varchar(2000) column for example).

    A join is fastest when the column is a primary key clustered...

  • RE: Why getting a conversion error when subtracting two dates?

    Always use DATEDIFF to compare/add/subtract dates. 

    datetime and smalldatetime data types are not numbers, so SQL Server doesnt know what you are thinking when you say WHERE date - date > 14...

  • RE: Security: Is there a way to lock down SQL Server Agent ??

    SQL Sever and SQL Agent run as Windows Services. Starting and stopping windows services is done according to windows permissions and has nothing to do with sql users. Even though...

  • RE: Increment Field Value Automatically

    SQL Server has IDENTITY to do autonumbers. It can only be used with an int data type, but you could create a computed column to return the identity + year...

  • RE: Statements work, Stored procedure doesnt...

    1) dbo is a user, while db_owner is a role. There are subtle but important differences.

    To learn more about permissioning and ownership in SQL Server, I'd recommend reading through all...

  • RE: sp3 vs sp3a

    mmm Microsoft must have forgotten to increase the build number for SP3a, despite some of the added fixes, SP3 and SP3a report the same version (8.00.760). The only way to...

  • RE: What is N ???

    The N before the quotes says that the text inside the quotes should be treated as unicode.

    If you ever start working with something funky like Japanese text in your...

  • RE: Looping without a cursor

    Oh this is a fun one, cause cursors are soooo slow.

    Here's s snippet of code from a routine i use that loops through the...

  • RE: how write an Immediate If in SQL

    Check out SELECT ... FOR XML . The syntax is a little tricky, but your entire results set will be returned as an xml document, in the formatting you supply....

  • RE: connecting to sql server with vb

    Hey Chris

    VB.Net I'm not to familiar with (I use C#), but the .Net data objects are the same. Some tips to help you on your way:

    • To access SQL Server you...
  • RE: Statements work, Stored procedure doesnt...

    BULK INSERT runs under the security context of SQL Server.

    bulkuser is the owner of your table, and dbo is the owner of your sproc. Two different security accounts. If...

  • RE: system database backup

    Ah... Changing SQL Servers default options on system databases can only lead to trouble, or in some cases instant death.

    Leave them as they are. Master really only needs backing...

  • RE: many individual inserts slow - need suggestions

    Hey Jdalonzo

    I work with tables that typicaly get Millions of rows inserted into them at a time. BOL and I suggest dropping and recreating the clustered index if:


    As a...

Viewing 15 posts - 286 through 300 (of 323 total)