Forum Replies Created

Viewing 15 posts - 241 through 255 (of 389 total)

  • RE: SQL Backup issues - error 112

    Error 112 can indicate insufficient disk space - do you have enough disk space when the plan is run?

    Piotr

    ...and your only reply is slàinte mhath

  • RE: Dynamic SQL Requirements

    It doesn't, but it's convenient. If you declare too short string your query will be truncated at execution time.

    declare @sql nvarchar(max)

    set @sql = 'select * from sys.identity_columns'

    exec sp_executesql @sql

    go

    --this is...

    ...and your only reply is slàinte mhath

  • RE: 0xA3 when is it L and when L

    Hm.. don't have too much time now, but this seems to work - you have to prefix your search string with N. Here's sample code:

    --default collation is SQL_Latin1_General_CP1_CI_AS

    create table testtable

    (

    col...

    ...and your only reply is slàinte mhath

  • RE: MAX Function is not working correctly

    This is how you end up when you don't use canonical date format (120) 🙂

    Check this out:

    DECLARE @StartDate DateTime

    Declare @EndDate Datetime

    Set @StartDate ='11/01/2007' --11th of Jan or 1st of Nov?

    Set...

    ...and your only reply is slàinte mhath

  • RE: Partitioned tables

    In short, you can't keep related tables in partitions as you will not be able to switch them in or out of the partition because of violation of FK constraints....

    ...and your only reply is slàinte mhath

  • RE: Linked server and password

    Does this server have to be created each time you execute the procedure? Perhaps you could create it once, and then the password is not dicplayed.

    Piotr

    ...and your only reply is slàinte mhath

  • RE: How to prevent insert/update trigger sequence?

    Probably,

    In the end it does the same thing 🙂

    Piotr

    ...and your only reply is slàinte mhath

  • RE: Scripting column moves

    Wouldn't it be easier to modify the triggers? They seem to smell from what you are saying.

    Piotr

    ...and your only reply is slàinte mhath

  • RE: How to prevent insert/update trigger sequence?

    Interesting. I get the same result on my SQL 2008CTP. Database compatibility level doesn't make change. You can create such column as long as it is not persisted. I suspect...

    ...and your only reply is slàinte mhath

  • RE: How to prevent insert/update trigger sequence?

    Since they are calculated only when a column (your varbinary) changes, there should be no performance hit when you read them. There's an article by Andy Warren about them:

    http://www.sqlservercentral.com/articles/T-SQL/61764/

    Piotr

    ...and your only reply is slàinte mhath

  • RE: How to prevent insert/update trigger sequence?

    Well in this case instead of trigger is better. If performance is not that important, you can create a view instead of persisting this column and make that external application...

    ...and your only reply is slàinte mhath

  • RE: How to prevent insert/update trigger sequence?

    May I ask, why do you update a column in a table in the insert trigger? Maybe another approach could be possible?

    Piotr

    ...and your only reply is slàinte mhath

  • RE: How to prevent insert/update trigger sequence?

    Are you saying that update trigger is fired when you insert a row to database? Do you call update on this table within insert trigger?

    Piotr

    ...and your only reply is slàinte mhath

  • RE: change collation

    You have to change collation on database AND on existing columns.

    So alter database and set of alter table alter column statements is the way to go.

    Regards,

    Piotr

    ...and your only reply is slàinte mhath

  • RE: Restore a SQL Server Express 2005 database to SQL Server 2005 Enterprise edition

    Try to restore database so its files are not located in Program Files folder. I usually create folder databases in root of my C:\ drive so I don't have to...

    ...and your only reply is slàinte mhath

Viewing 15 posts - 241 through 255 (of 389 total)