Forum Replies Created

Viewing 15 posts - 121 through 135 (of 1,409 total)

  • RE: will it call subquery for every row of table with distinct in subqyery.

    rajemessage 14195 (11/17/2016)


    hi,

    1) select * from abc where abcid =(select top 1 abcid from xyz where xyzid =@xyz)

    2) Select * from df where dfid in (select...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Access is denied

    Because it happens only occasionally: could it be an existing file must be overwritten, which is already (or still) locked by another process?

    Something like a backup that is created to...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: SQL Server 2012 Standerd Edition Upgrade to SP3

    Harshana-455711 (11/15/2016)


    Hi

    We have SQL Server 2012 Standard Edition without any service pack so we need to upgrade to SP3. can we do the in-house upgrade ?. Appreciate your feedback on...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Map login of Local Windows Users to User in Database without failover

    Glad I could help, and thank you for reporting back. This can help others who stumble upon this thread.

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Map login of Local Windows Users to User in Database without failover

    The SID on a SQL login can be specified but the SID of a Windows account is defined on Windows level (like in Active Directory). If you want the SID...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: The parameterized query expects the parameter '@Id', which was not supplied.

    I'm not familiar wirth C#, but shouldn't you pass a value for the ID parameter (see bold part below)?

    <snip>

    ...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Insert into table

    wikus (11/14/2016)


    CREATE TABLE [dbo].[Table_1](

    [Col1] [nchar](10) NULL,

    [Col2] [nchar](10) NULL,

    [Col3] [nchar](10) NULL,

    [Col4] [nchar](10) NULL,

    [Col5] [nchar](10) NULL

    ) ON [PRIMARY]

    INSERT INTO Table_1

    VALUES (1,'AAA','xyq',345,'eyrt'),(2,'CCC','frt',456,'kjhg'),(3,'AAA','kkj',367,'uytr'),(4,'DDD','hhh',543,'fdds'),(5,'CCC','xyt',457,'ewqq'),(6,'AAA','iuy',872,'lkji')

    The reult should be:

    Col1Col2Col3Col4Col5

    1 ...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Database in Restoring Mode After Server Startup

    lmarkum (11/11/2016)


    This is a data warehouse SQL Server instance and there is a nightly job that runs at 9 pm. Part of what it does is restore several databases, one...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Log on to SQL Server as a different Windows Account

    Welsh Corgi (11/11/2016)


    I need to Log on to SQL Server as a different Windows Account.

    I tried the following but it did not work.

    “Right Click” with Shift key pressed and then...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: 2008r2 vs 2014 (and 2012) - Ignoring 'tab/illegal' characters

    Rob-350472 (11/9/2016)


    I've just seen that but it doesn't actually seem to be an option in 2014... not sure if it's only in 2012 or 2016 :/

    This suggests it's in...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: 2008r2 vs 2014 (and 2012) - Ignoring 'tab/illegal' characters

    I don't have SQL2014 but perhaps take a look at the settings in SSMS:

    > Tools - options - Query results - SQL Server - Results to Grid - "Retain CR/LF...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: script job scheduless

    sqlfriends (11/8/2016)


    I would transfer jobs from one server to another server.

    I can script out using SSMS for all the jobs using object detail view.

    But I found there are no schedules...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Need To Increase "User Connections"

    Try to connect using the DAC (Dedicated Admin Connection). If that is also not possible, you'll need to stop the SQL Server service and start it from the command prompt...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: SQL query help

    You should start with a procedure to create the default tekst of the mail and insert the customer name dynamically. Basically the query will look like:

    SELECT 'Dear '+name+', {add you...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: restore data baswe browsing unavailable

    Is the backup location set in the Instance properties (section: Database Settings)

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **

Viewing 15 posts - 121 through 135 (of 1,409 total)