Forum Replies Created

Viewing 15 posts - 991 through 1,005 (of 1,409 total)

  • RE: Connect SQL Server 2012 with Database Engine

    I haven't SQL2012 at my hands right now, so the mentioned steps could be a bit different. So if you can't find it at once, just look a bit around...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: sp to move data between matching tables

    Yeah, I know. It can be a pain to get code with single, double, triple, quadriple and sometimes even more quotes. Your solution with the REPLACE is a good appraoch.

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Move Log file

    1. Take the database OFFLINE

    2. copy the LOG file to the new location

    3. Change the location in the master database with code:

    ALTER DATABASE [dbname] MODIFY FILE (NAME = 'logical_name',...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Need to create a snaphot for reporting server?

    jbalbo (7/1/2013)


    If it matters I don't want to overwrite tables that exist on the reporting server and don't on the live server

    I suggest you place the tables that are...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Backup Scenario

    You are correct. Keep in mind possible issues regarding IDENTITY columns and/or FOREIGN KEY relations.

    But basically you can use "INSERT INTO [target]..table SELECT ... FROM [source]..table" to get the data...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Backup Scenario

    This question looks like homework, so I only give you an overview. That would be enough to solve your question.

    Restore, as a new database, the the most recent FULL (and...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Top One by one

    When you apply a rownumber (inside the CTE), you can also get the desired rows by using a select TOP with a WHERE:

    SELECT TOP (10000)

    *

    FROM table

    WHERE rownumber > @int *10000

    ORDER...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Top One by one

    Instead of NTILE you could also apply a ROW_NUMBER. Add logic to your query to calculate the required rownumbers depending on your input variable (like: 1 = row 1 -...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Top One by one

    I don't know how it performs on such a large dataset, but you can take a look at the NTILE() ranking function. A drawback is that the NTILE cannot be...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: backup- fastest

    It depends on the setup and secification of your environment. Backup to direct attached storage will probably be the fastest solution because you are not bind to the network bandwith....

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Connect SQL Server 2012 with Database Engine

    Have you downloaded and installed the Database Tools?

    From the microsoft website:

    •Express with Tools (with LocalDB) Includes the database engine and SQL Server Management Studio Express)

    •This package contains everything needed...

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

    double post, please reply to http://www.sqlservercentral.com/Forums/Topic1468772-1292-1.aspx?Update=1

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

    double post, please reply to http://www.sqlservercentral.com/Forums/Topic1468772-1292-1.aspx?Update=1

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

    You can use the -U and -P parameters. Take a look at http://msdn.microsoft.com/en-us/library/ms162802.aspx of the complete syntax.

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Export using bcp problem

    I don't know if this will be the solution, but I suggest to increase the size of variable @filename to NVARCHAR(165). Because this variable is build upon (adding text to)...

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

Viewing 15 posts - 991 through 1,005 (of 1,409 total)