Forum Replies Created

Viewing 15 posts - 346 through 360 (of 389 total)

  • RE: New to SQL Server Express 2005

    Hi, a few questions 😉

    How do you store your data in SQL database: do you use char or varchar data type in biggest fields? Do you use appropriate types for...

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

  • RE: Best way to move a database from SQL Server Express to SQL Server

    this is a pretty good way. maybe you should consider backup/restore route? this way you don't have to take db offline, though this probably does not matter too much.

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

  • RE: CONVERT with Style 120

    you take result of inner replace and put it as first parameter to outer, and so on.

    select replace(replace(REPLACE(CONVERT(varchar(30), GETDATE(), 120),'-',''), ' ', ''), ':', '')

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

  • RE: Trigger and view

    Why do you need to insert into both tables in one query? All you end up with is a set of queries hidden in a trigger on this view. Isn't...

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

  • RE: Tuning a Recursive Query

    Before you run the query, click 'Include actual execution plan' and see how it looks like when the query is finished. look for table scans for example, try to eliminate...

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

  • RE: VB script for restoreing DB

    Check for the MOVE option in the restore database statement. Also, to get list of files, read about restore filelistonly.

    Piotr

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

  • RE: Openrowset returning null value when field is not null

    just an idea, what would happen if you add an empty string before your number?

    as in

    Select '' + [Serial Number] as [Serial Number],

    GM,

    [From Date],

    [To Date] from txtsrv2...test#csv

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

  • RE: ODBC

    Read about linked servers in books on line. this is the way to go.

    I assume you have odbc source registered on your system.

    Piotr

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

  • RE: Writing an SP to use TempDB in Mixed Collation Environments

    no prob.

    does it mean that collate database_default does not work either?

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

  • RE: Writing an SP to use TempDB in Mixed Collation Environments

    This is what I learned:

    you can create temp tables and specify collation of character fields to current database collation.

    collate database_default works nicely, for example

    create table #temptable

    (

    field1 int,

    field2 varchar(15)...

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

  • RE: Openrowset returning null value when field is not null

    maybe you could set up a linked server instead of using openrowset? openrowset has to be enabled on server which is not what every DBA likes

    and as far as the...

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

  • RE: t sql

    yes, it depends on your needs, but if you have foreign key I assume that you'd rather have inner join.

    btw, syntax you use also represents inner join and

    select t1.a,...

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

  • RE: t sql

    textman (12/6/2007)


    SELECT table1.column1, table2.column1, table3.firstname, table3.lastname, table3.address

    FROM table1, table2, table3

    WHERE table1.column1 = table2.column1

    The WHERE clause does.nt work.

    what do you mean by it doesn't work?

    from what I see it should return...

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

  • RE: Problem with inserting nulls into uniqueidentifier

    You should not use * in queries, the order of columns in view and table may be physically different.

    you must use

    insert dest (col_a, col_b, unique_col) select cola, colb, null from...

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

  • RE: I don't want SQL Server to order the data

    That's what I meant Gail. Application should not rely on physical order of rows in a table. Sorry for the confusion 🙂

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

Viewing 15 posts - 346 through 360 (of 389 total)