Forum Replies Created

Viewing 15 posts - 421 through 435 (of 1,109 total)

  • RE: Deleting a simple row

    Did you create a primary key on this table? If not, are there duplicate rows in this table.

    If there are duplicates, are you trying to delete all of them or...

  • RE: How to search a table in 500 server ?

    From T-SQL, on SS 2005 you can iterate through your servers in a loop and connect to them and execute a query using OPENROWSET('SQLNCLI'

    OPENROWSET('SQLNCLI','Server=myserver;Trusted_Connection=yes;','SELECT ...')

    However, there are third party tools...

  • RE: Can't drop a index cluster

    Alen cappelletti (2/21/2008)


    I all,

    I got this table

    -----

    CREATE TABLE [dbo].[Logs](

    [IDLog] [int] IDENTITY(1,1) NOT NULL,

    [IDlogGiorno] [int] NOT NULL,

    [Date_Time] [datetime] NOT NULL,

    [c-Ip] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

    [cs-Uri-Stem] [varchar](150) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

    [cs-Uri-Query] [varchar](250) COLLATE SQL_Latin1_General_CP1_CI_AS...

  • RE: Restoring the database

    restore database databasename with recovery

    Regards,

    Andras

  • RE: Query regarding Delete

    Hi Harsh,

    You should not really worry too much about how data is stored in the database, at the end of the day this is the task of the database management...

  • RE: MDF and LDF

    Ratheesh.K.Nair (2/21/2008)


    Hi,

    How can i find the mdf and ldf using query?

    TAI

    On SQL Server 2005:

    select physical_name from sys.database_files

    for 2000 use dbo.sysfiles

    In both cases use the...

  • RE: Collation problem

    avinash repe (2/19/2008)


    Thanks for your reply..

    Yes i am going to re-install SQL SERVER 2005,where reinstalling it ask for collation setting,that you can set.

    And i am going to set according to...

  • RE: Foreign Key Status

    Kenneth Wilhelmsson (2/19/2008)


    While doing checks on FK's, don't forget to also check if it's trustworthy or not..

    select OBJECTPROPERTY(object_id(myForeignKey), 'CnstIsNotTrusted')

    /Kenneth

    Kenneth has an excellent point. Many people disable their foreign keys, and...

  • RE: SELECT vs INSERT INTO with the SAME SELECT performance issues

    Zeev Kazhdan (2/18/2008)


    OK,

    Here it goes; it didn't let me to run the statement with 1,NULL,NULL as you suggested,

    but NULL,NULL,'DETAILED' - hope it will be ok. I"ve loaded the result file...

  • RE: backup from version 8 to version 7

    kgache (2/18/2008)


    hello,

    i am quite sure it is a mssql server..

    please tell me if i understood correctly

    - i have the database on a mssqlserver version 2000

    - i go to the properties...

  • RE: problem wif my insert statement

    Encapsulate it into an extra select statement:

    INSERT INTO Photovoltaic

    ( PV_site

    , PV_state

    ...

  • RE: backup from version 8 to version 7

    kgache (2/18/2008)


    Hello,

    i have a database-backup from a server version 8 and i want to restore it on a server version 7.0.

    Is there a possibility to do that?

    thank you very much

    kg

    Unfortunately...

  • RE: SELECT vs INSERT INTO with the SAME SELECT performance issues

    Zeev Kazhdan (2/18/2008)


    Thank you for the reply.

    I have a primary key on both tables and I have tried to play with WITH(INDEX()), but nothing changed.

    There is no trigger nor constraint...

  • RE: Database growth

    You can look at the size and growth columns in sys.database_files before and after the reindexing.

    Regards,

    Andras

  • RE: SELECT vs INSERT INTO with the SAME SELECT performance issues

    Zeev Kazhdan (2/18/2008)


    Dear All,

    I have a SELECT statement which runs less than 1 sec.

    When I try to INSERT this select into real table, nor @table, nor #table it takes between...

Viewing 15 posts - 421 through 435 (of 1,109 total)