Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.NET Framework error occurred during execution of user-defined routine or aggregate "geography"'IF EXISTS(SELECT COUNT(1))' VS 'IF EXISTS(SELECT 1) ''Incorrect syntax near' error while executing dynamic sql'INSERT EXEC' within a function did not work'Sort' in exuction plan is showing more than 90 % cost, what to do?'TRY_CONVERT' is not a recognized built-in function name'VARCHAR' is not a recognized built-in function name.'WHEN MATCHED' cannot appear more than once in a 'UPDATE' clause of a MERGE statement."EXECUTE AT" with Dynamic Linked Server Name"explicit value must be specified for identity column in table" error in SQL 2000"FROM clause have the same exposed names. Use correlation names to distinguish them""No transaction is active." error when trying to send a transactional SQL statment over MSDTC"Restricted data type attribute violation" error and SQLS 2017, ODBC Drivers 11 & 13 for SQL Server"SELECT * INTO table FROM" a stored procedure? Possible?"SELECT COUNT(*) FROM (SELECT..." not working"SELECT INTO" with indexes?"Simple" SQL to check for alpha or numeric charcters isn't working right"String or binary data would be truncated.\r\nThe statement has been terminated.""String or binary data would be truncated" and field specifications“Unable to enlist in the transaction” with Oracle linked server from MS SQL Server[<Name of Missing Index, sysname,>] in non clustered index[Execute SQL Task] Error: The value type (__ComObject) can only be converted to variables of type Object.[ODBC Driver Manager] Data source name not found and no default driver specified[ODBC SQL Server Driver] Invalid Parameter Number/ Invalid Description or Index[Sql server 2012] Change from vertical to horizontal table as dynamic@@FETCH_STATUS in nested loops@@ServerName returns wrong value in SQL SERVER 2008##TempTable and INSERT-SELECT FROM an existing Table with an IDENTITY column%rowtype equivalent in SQL server++ operator in TSQL - bug or feature?> converts as > & converts as > in XML query whats the solution?2 tables referencing each other using foreign key.is it possible2 transactions in one stored procedure4 digit number to add to table8 KB pages to MB or GB9 digit date number (ex.01.01.2014 => 131989761)A better way to join the same table multiple times?A cursor with the name ' ' already exists.A cursor with the name 'cur1' already exists.A fatal scripting error occurred. The file specified for :r command was not found error, please help.A file activation error occurred. The physical file name may be incorrect while creating databaseA practical approach the Nested Sets when creating hierarchies.A question about regular expressions in T-SQLA stored procedure returning a boolean value indicating wheter a specified value exists in a table.A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.)A USE database statement is not allowed in a procedure, function or trigger.A week this year Against a week this time last year in SQL (NOT MDX)A WITH keyword and parenthesis are now requiredAccent SensitivityAccess Code - DELETE Statement with DISTINCTROW and T-SQLAccess Now() vs. T-SQL GETDATE() ?ADD and SUBTRACT depending on the condition is CASE STATEMENTADD COLUMN to variable table?Add prefix in data columnAdd Time in SQL HH:MM:SS to another HH:MM:SSAdding a column to a large (100 million rows) table with default constraintadding a extra column in a pivot table created uisng T-SQL Pivot Table queryAdding a partition scheme to an existing table.Adding a Value to a 'date' Column caused an overflow??Adding Column to existing table with variable column nameAdding Days to Date FieldAdding leading zeroes (PADDING in SQL Server)adding new column in my linked serverAdding NOT NULL DEFAULT VALUE column to existing table with dataAdding of counter columnAdding varchar(8) in time format that totals more than 24 hrs in SQLAdditional Column With BULK INSERTAdventureworks query about salesAFTER INSERT and AFTER UPDATE triggers on same tableAfter INSERT Trigger question - how to use value from last added recordAge Bucket in sqlAge calculation in report builder queryAggregated CASE expressions versus the PIVOT operator… Is one better than the other?Aging Report SQL QueryAlias all columns in a given tableAlias column with variable value in SQL ScriptAll MonthNames and Month numbers in sql serverAll queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal number of expressions in their target lists.all the events in the workload were ignored due to syntax errors.the most common reason for the error would be database to connect has not been set properlyALTER AN EXISTING TRIGGER TO ADD A NEW COLUMNAlter collate of master databaseAlter Coulmn takes long time to completeAlter foreign key column to not Allow null questionAlter Multiple Procedures with One sql scriptAlter Stored Procedure is taking huge time in sql serverAlter Table Add Column if Not Exists to update Schema Modification ScriptAlter Table add Column - How do you add a column after say the second columnAlter table add constraint primary key clustered identity(1,1)ALTER TABLE ALTER COLUMN (To set the default value)ALTER TABLE Progress?ALTER TABLE SWITCH statement failed. Check constraints or partition function of source tableALTER TABLE with variable TableNameALTER vs UPDATE when creating a new column with default value.Alternate queries for MERGEAlternative for OR in WHERE clauseAlternative for PIVOTAlternative of CURSOR in SQL to improve performance ?alternative query for in clauseAlternative to Full Outer JoinAlternative to Row_Number QueryAlternative way STUFF for XML PATH ('') ?Am getting an error when i run this codeAmbiguous Column NameAn aggregate may not appear in the set list of an UPDATE statement....An error occurred while executing batch. Error message is: Error creating window handle. SQL SERVER 2008An error occurred while executing batch. Error message is: There is not enough space on the disk.An error occurred while the batch was being executed.An explicit value for the identity column in table 'Calculation' can only be specified when a column list is used and IDENTITY_INSERT is ON.An invalid floating point operation occurredAn object or column name is missing or emptyanonymous tablesANSI_PADDING IssueAny easy way to change TempDB collation?Anyway to force SQL server to save store procedure with errors?Appending a SQL command output file rather than overwriting it?Appending text to a field that already contains text using TSQLapply cross apply function on conditionArabic question markArduino and SQL ServerAre there any Bitmap(ped) indexes in SQL Server?Are there MIN(A,B) or MAX(A,B) functions in SQL?Argument data type datetime is invalid for argument 3 of json_modify functionArgument data type sql_variant is invalid for argument 1 of like functionArgument data type text is invalid for argument 29 of checksum functionArgument data type varchar is invalid for argument 1 of formatmessage functionARITHABORT in the connection stringArithmetic overflow error converting expression to data type datetime.Arithmetic overflow error converting expression to data type money.Arithmetic overflow error converting float to data type numericArithmetic overflow error converting money to data type numericArithmetic overflow error converting numeric to data type varcharArithmetic overflow error when using DATEADD with [Timestamp] column in sys.dm_os_ring_buffersArray as stored procedure parameterArray data type in SQL serverArray's IN SQL SERVER?ASCII values for extended charactersAssign empty string '' if datetime is nullAssign EXEC output to VariableAssigning NULL value to column name using Case Statement of where is SQL SERVER 2008atomic if not exists() and insert or updateAttempt to fetch logical page (1:155534) in database 7 failed. It belongs to allocation unit 72057595430240256 not to 72057594197835776.Attempting to grow LOB beyond maximumAttendance details- calculated the number of days leave ,present for each and every employeesauto fill foreign keyAuto increment a bigint column?Auto Increment Insert in Merge Syntaxauto-increment column using stored procedure ???autocommitAutoincrement existing column sql serverAutomated Conversion from T-SQL to ANSI SQL?Automatic Truncate Long Strings while inserting data.Automatically import the CSV files from a FolderAutomatically UpperCase ALL MS SQL Server KeywordsAutoNumber in T-SQL Select StatementAVG ->Operand data type varchar is invalid for avg operatoravoid insertion of duplicate entries in a BULK INSERT statementBad performance of EXCEPT operatorBasic - select with fixed values - invert columns to rowsBasic CTE query, get full path of something recursiveBCP Error - Copy direction must be either 'in', 'out' or 'format'.BCP Export to csv using UTF-8 or UTF-16BCP Issue when using a format file and excluding columns.BCP Numeric value out of rangeBCP or BULK INSERT? why?bcp query out formatbcp Unable to resolve column level collations...bcp utility copies 0 rowsBCP Utility Native Format Error: Unexpected EOF encountered in BCP data-fileBefore Delete Triggerbegin tran does the row level lock or table level lockBegin Transaction with If ConditionBEGIN TRANSACTION within TRY - CATCH or vice versaBest practice to handle the paging and performance in SQL Stored procedureBest Practice: Use of semi-colon to terminate statements;Best practices in writing queries for huge datasetBest way to delete 311 million records from SQL Server 2017Best way to Delete million records from billion records tableBest way to Delete the DataBest way to force materialize a CTE?Best way to reference calculated fields in a queryBest way to update date to default value if = 1900-01-01Better Approach to avoid DISTINCT/GROUP BYBetween Date to include Null valuesBetween Vs Greater Than & Less ThanBig Float?black diamond with question markboolean aggregate functionBuilding a field name by concatenating strings for SELECT statementBuilding where clause dynamically in stored procedureBulk Import from files with different column orderbulk insert - Bulk load data conversion errorBULK INSERT - Will not accept datetime value regardless of format.Bulk Insert -- Access denied issuesBULK INSERT .csv file errorBulk Insert 0 rows affectedBulk Insert and Blank LinesBulk Insert Arabic Data from .csv file to MS SQL 2008 DBBulk Insert error file does not existBULK INSERT error Row 1 File Offset 0 ErrorFile Offset 0 - HRESULT 0x80004005.BULK INSERT Error; Access is Denied.BULK INSERT error: Bulk load: An unexpected end of file was encountered in the data file.BULK INSERT failed while loading data from CSV fileBulk Insert Failing - Error "Cannot bulk load because the file XXX could not be read. ..."Bulk insert failing on datetime datatype columnsbulk insert for loading .xls (excel files)Bulk insert from changing file names.BULK INSERT into "new" table possible?BULK INSERT into a table variableBulk insert into local table from Linked Server table?BULK INSERT into specific columns?Bulk Insert issue with pipe field terminatorBulk Insert limitation?Bulk insert operation with checking if record existsBulk Insert Row Terminator issuesBulk Insert skipping rowsbulk insert to one column tableBulk Insert With ConditionsBulk insert with data having commaBULK INSERT with unlimited errorsBulk INsert with variable LastrowBulk Insert Without Locking TableBulk Insert. Strange Characters. Please, is really urgent. Thank You.Bulk load: An unexpected end of file was encountered in the data fileBulk renaming table namesCalculate Average of Top 10 RecordsCalculate current Quarter period and previous 4 Quarter periods based on Todays date.calculate current Quarter/Review Period and previous four Quarter/Review Periods based on todays date.Calculate Elapsed Time Between Dates Excluding WeekendsCalculate stock ageing with SQL queryCalculate the date of the Next Sunday of current weekCalculate the number of workdays in a monthCalculate the Numerator and Denominator in 1 queryCalculate the ratio between two columnsCalculate YTD, Previous YTD in the same querycalculated field with decimal placeCalculating 30,60,90 Days Totals in sqlCalculating Average between two datetime columnsCalculating the RATE as the similar financial function in Excel - SQL Server 2014-2016Call a webservice from TSQL (Stored Procedure)Call function from viewCall function on Linked serverCall getdate from linked servercall the multiple .sql files through Batch scriptCalling the same function multiple times in the same SELECT statementCan a [non primary key] be referenced as [foriegn key] in other table?Can a uniqueidentifier have a default value?can I access function on remote server through linked server?Can i call a stored procedure in view?.Can I configure FILESTREAM to use file share?Can I delete NT SERVICE\SQLWriter and NT SERVICE\Winmgmt logins?Can I EXECUTE a SQL Server Stored Procedure with Parameters and store the result set to a CTE Table so that I can then UNION to itCan I find out the "Listener" name through a SQL Server QueryCan i give a rollup an Alias?Can I have a conditional JOIN?Can I have a primary key as a non-unique columnCan I pass parameter to an ALTER DATABASE commandCan I prevent deadlock during concurrent deleteCan I print to file using T- SQLCan I sort an SQL table?Can I sort row without order by clauseCan I UPDATE, then INSERT if no record updated?Can I use a COLLATE clause in a temp table definition?Can I use aggregate function within CASE?Can I use if statement in a table valued function?Can I use LEN or DATALENGTH in a WHERE clause?Can I use OUTER JOIN on 2 columns at the same time?Can row_number() work in UNION STATEMENTS ?Can someone explain just exactly why xp_cmdshell is such a massive risk?!Can SQL Profiler give you the Missing Index information?Can Symmetric keys be used in a view?Can table-valued parameter be null?Can the "print" command be told not to send a "newline"?Can we alias name for temp tableCan we creating index on non unique value columns on temporary tablesCan we do MAX inside nested CASE Statement?Can we generate pipe delimited column through SQL queryCan we optimise While Loop in sql server for large number of data?Can we pass parameters to the trigger?(Beginner)Can we RAISERROR inside MERGE StatementCan we select Bottom 1000 rows of a database Table from SSMS 2008 R2?Can we set value in a variable inside a select statementcan we use CTE for selecting data from excelCan we use While loop in CTE?can we write DDL command in Stored Procedure?Can wildcards be used on datetime column?can you add colour to a fields output in T-SQL?Can you change the value of yes or no instead of true or false use data type (BIT) ?Can you have a TRY CATCH in dynamic SQL?Can you Select From (another query)?Can you use a case statement as part of a left joinCan't access temporary table inside functionCan't add datetime column with default value in SQL Server 2005Can't change the currente collate of my databaseCan't copy the result of a query?Can't declare table parameter as input to stored procedureCan't delete rows from Mgt Studio viewCan't Enable Foreign Key Constraint (Msg 547, Level 16, State 0, Line 15)Can't perform emptyfile operation on .mdf?Can't select DISTINCT values with XML datatype.Can't use Begin Transaction before a WITHCancel RollbackCannot ALTER 'dbo.fn_GetDate' because it is being referenced by objectcannot be used in an index or statistics or as a partition keyCannot continue the execution because the session is in the kill stateCannot create a row of size 8086 which is greater than the allowable maximum row size of 8060cannot create an index on a viewCannot create an instance of OLE DB provider Error 7302.Cannot detach the database 'BDEV' because it is currently in use.Cannot drop a SQL Databasecannot drop database because currently its in usecannot drop tablecannot find tables in SSMS?Cannot get data of the row from OLE DB provider "OraOLEDB.Oracle" for linked serverCannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.Cannot insert duplicate key row in object...Cannot insert the value NULL into column 'ID', tableCannot open backup device 'C:\TEMP\Demo.bak'. Operating system error 2(The system cannot find the file specified.).Cannot parse using OPENXML with namespaceCannot promote the transaction to a distributed transaction because there is an active save point in this transactionCannot resolve collation conflict for equal to operationCannot resolve the collation conflictCannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the replace operation.Cannot specify an index hint for a remote data source.Cannot transfer schemabound object - errorCannot truncate remote table on linked serverCannot update identity column 'ItemID'.Cannot update the view or function "CTE" because it contains aggregates or a DISTINCT clause.Cannot use an aggregate or a subquery in an expression used for the group by list of a GROUP BY clause.Cannot use the ROLLBACK statement within an INSERT-EXEC statement.Cant Drop Tablecapitalise the first letter of each word in a string in SQL Server.Capturing the results from exec commandCarriage Return...Line Feed...CHAR(10) and CHAR(13) HelpCASE Expression in conjunction with LEN(gln.GLNumber)Case expressions may only be nested to level 10.CASE in JOIN CONDITIONCASE STATEMENT AS A CONDITIONAND ALIASCASE statement based on TIME fieldcase statement for count between two datesCASE statement in SQL returns NullCASE statement in WHERE clause for IS NULL: I want to say IS or IS NOT Null for a column using CASECase Statement in Where clause with parameters SQL ServerCASE statement inclusion and exclusionscase statement inside a where clause with 'IN' operatorCASE Statement on multiple columnsCASE STATEMENT RETURNING MULTIPLE ROWSCase Statement returning multiple valuesCASE statement returns "Invalid Column Name" ErrorCase statement that increments variable with 1 is giving errorCase Statement using DivideCASE Statement when not null , else if HelpCase statement with Between in Where ClauseCase statement with Date ComparisonCASE statement with substringCASE WHEN - Adding collate into it.Case WHEN and concatenate stringCASE WHEN isnumeric(ColValue) THEN ... ELSE ... ENDCASE WHEN MIN,SUM ETC.CASE WHEN Problem with CASE NULLcast nvarchar to smalldatetimeCast a varchar(6), 112 as dateCAST and IsNull togethercast or convert nvarchar with comma as decimal separator to decimalCAST Timestamp to BigintCAST() with COLLATE is non-deterministic -- what's the work around?Casting a NVARCHAR column with percentage as INTcasting data-type nvarchar(100) to uniqueidentifier, how?Casting to datetime2Catching Error Message from XP_CMDSHELLCATS in sql serverCEILING after decimalChange All Field Names in a Table to have a Lowercase First Letterchange colimn definition from varchar to moneyChange Data Type of data retrieved by SELECT querychange first letter in uppercase and and rest lowercaseChange font colour in table cell based on SQL Query in SQL EmailChange index of all tables, in at the databases on a server.change Minutes and seconds of a datetime value to 0Change SQL Server dateformat?Change the row color based on result setChange the seed & increment value of an identity column.Changing a primary key clustered index to a non-clustered indexCharindex very bad performanceCheck Actual Error from sp_executesqlCheck Constraint Across Tablescheck constraint calls a stored procedure or triggerCheck Constraint on decimal: restrict user to enter more than 1 digitCheck date format is dd/mm/yyyyCheck for Null Value or Spacescheck for the existence of multiple columns in a tableCheck for valid Ip addressCheck if amount is positive or negativeCheck If Column Is PRIMARY KEYCheck if database exists?Check if Feb-29 is falling between start and end datesCheck if file exists then delete it- fix codeCheck if installed SQL Server is an Eval copyCheck if login has db_owner via user mappings on a specific databaseCheck if objects already exist (i.e. FILEGROUP and FILE).check if schema existsCheck if UNC path exists (It is folder, not file)Check if value is alphanumericcheck isnull for UniqueIdentifiercheck table existsCheck valid decimal and integer values using TSQLChecking for the existence of a SQL Agent JobChecking how long a Stored procedure has been run?Checking if xp_cmdshell is enabled or notChinese characters issue with T-SQL.Clear tempDB dataCLR semaphoreClustered index update in execution planCoalesce in JOIN conditionCoalesce with SumCode to check IBAN numbers?Collapse and Expand node in SQL editor not displayingCollate Database_Defaultcollation conflictcollation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS"collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CS_AS" in the equal to operationCollation Issue in query using except operationcolumn alias as variableColumn Alias in Where clauseColumn already has a DEFAULT bound to it.Column is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.Column is not a valid index to enforce a full-text search key. Why?Column name in table starting with numberColumn names in each table must be uniqueColumn names in each table must be unique. Column name 'Product Description' in table 'Tab' is specified more than once.Column, parameter, or variable #2: Cannot find data type test_type.Combining conditional COUNTs in one GROUP BY queryCommenting out an SQL Line when using Dynamic SQLCommon table expression defined but not used.. why?Common Table Expression Select Into With SubqueryCommon Table Expression with Primary Key Syntax???Common Table Expression...Naming Standard?Compare address in SQLCompare BULK INSERT vs INSERTCompare int to nvarchar ?Compare the 3 columns and pick up the latest dateCompare two tables on different serverCompare two xml data by xquery in sql serverComparing columns with NULL values--Merge says unmatched when data is matched.Comparing two columns using a case statementComplex string_split / PIVOT challengeCompose an EmailComposite key and clustered indexComposite Primary Key with Auto Increment ColumnCOMPUTED COLUMN using deterministic UDF cannot be persistedComputed Columns in Table Variables or Table Typescomputed table cannot be persisted because the column is non-deterministic.Concat with Auto-increment columnCONCAT_WS Not RecognizableConcatenate a string to use after the AS statementConcatenate distinct values to variableconcatenate numbers (not add them)CONCATENATE ROW_NUMBER WITH LEADING ZERO FOR MAXIMUM OF 15 CHARACTERSConcatenate two columns using a triggerConcatenated Stored Procedure parameter valueconcatenating in the string and passing parameters with sp_executesqlConcatenating inside EXECCondition query to parameter only if parameter has "usable" value?CONDITIONAL failed because the following SET options have incorrect settings: 'ANSI_PADDING'. VConditional If in Where ClauseConditional Joining tables based on param valueConditional Unique ConstraintConditionally CREATE a VIEW in a scriptconflicts with the type of other columns specified in the UNPIVOT listConnecting sysobjects table names with syscolumns namesCONSTRAINT rule of no special characters allowed? Helpconsumed workload has syntax errorscontains more than the maximum number of prefixes. The maximum is 2continue executing sql statements despite errorsConversion failed when converting character string to smalldatetime data typeConversion failed when converting date and/or time from character string.Conversion failed when converting date and/or time from character string. SQL 2008Conversion failed when converting from a character string to uniqueidentifier.Conversion failed when converting the nvarchar value 'xxxxxx' to data type int.Conversion failed when converting the varchar value to data type int.Conversion failed when converting the varchar value '],[' to data type int.Conversion of the varchar value overflowed an int columnConvert 3 character month abreviation to equivalent number?Convert a date column to YYYYMMDD format.Convert a datetime to YYYYMMDDConvert a dattime to a date in where clause gives incorrect resultsconvert am/pm to 24 hourConvert American to UK dateConvert BIGINT Timestamp to a DatetimeConvert BIGINT Timestamp to a Datetime???Convert binary data to decimalConvert binary format date in real date valueconvert binary image to jpg image using sqlConvert Binary(32) data into human readable string formata in sql server 2005Convert Bytes to GBConvert Bytes to GB and MB to GBconvert comma separated string values into integer valuesConvert Cron expression to DatetimeConvert CURRENT_TIMESTAMP as Current date onlyconvert date from YYYYMM to date for comparisonconvert date to bigint - sql server 2014Convert date to int in sql server 2008convert date to mm/dd/yyyyconvert date to mmddConvert DateTime to a DateTime with Milliseconds formatConvert Datetime to Hour and minute WITHOUT secondConvert DateTime to intConvert datetime to integerCONVERT datetime to ISO8601 drops millisecondsConvert decimal dynamicallyConvert Float date time to readable formatConvert float to moneyCONVERT FLOAT TO NVARCHARConvert from boolean to bitConvert from Decimal to Hex in SQLconvert from scientific notationConvert from scientific notationconvert from uniqueidentifier to int?Convert GUID to bytearray in SQLconvert hh:mm to total decimal hoursconvert hh:mm:ss to secondsConvert int to varchar(max)Convert Integer To Time Only In SELECTConvert JPEG images to binaryConvert Military time to Standard time??convert millisecond to "hh:mm:ss" formatConvert Milliseconds to SecondsConvert Money field to stringConvert negative number stored as nvarcharConvert NULL to datetimeConvert Number of Months to YearConvert Numbers/Currency to WordsConvert nvarchar to date in format yyyy/mm?Convert nvarchar to decimalConvert one column of comma delimited data to multiple columns - dynamic (without using Pivot?)Convert rows to columns without aggregationConvert SQL datetime to Excel datetimeconvert sql variant to dateConvert sql_variant to nvarchar without roundingConvert string into datetime with timezoneConvert String With Int's Comma Seperated Into Acutal Int's With Commas For Use INConvert text from c# byte array to sql timestamp on sql script.convert the below stored procedure into queryconvert the string value to 2 decimal places in nvarchar dataConvert Time in Hours and Minutes to Decimal using T-SQLConvert time integer to HH:mm:ssConvert timestamp to varcharConvert to whole number, no decimal pointConvert UTC time to Local Time (Daylight Savings Included) in SQL 2005convert value to 2 decimal places?Convert VARBINARY(MAX) column in human-readable formconvert varchar to decimalConvert varchar to uniqueidentifierConvert VARCHAR to XML in SQL Server 2008Convert varchar(255) to varchar(50)convert varchar(4) to timeConvert week number to date of 1st day of that week...convert xml to nvarcharconvert YYYYQ to quarter end dateConverting Binary Column to Decimal in TSQLConverting Decimal hours to hours and minutesConverting IST to UTC in SQL serverConverting 13 digit numbers to DateConverting a BIT value to NVARCHARconverting a date to char(8) value then compare them as datesConverting a Hex string to binaryConverting a Negative varchar decimalConverting alpha-numeric into integerconverting bigint to dateConverting float to dateConverting float to varchar typeConverting from DATETIME TO FLOATConverting from dd.mm.yyyy to YYYY-MM-DDConverting from varbinary to varcharConverting Hexadecimal to DecimalConverting Image datatype to Varbinary and NumericConverting Integer to IP Formatconverting money datatype to varchar with out rounding the valueconverting rows into columns when rows are using date.Converting RTF in a text column to plain text in bulkConverting seconds to hrs, and minuteConverting SQL Server HashBytes varbinary to Bigintconverting sql_variant column type to intConverting String Month and Year to DATETIME FormatConverting string without converting to scientific notation and without truncating decimalsConverting UTC Time To Local Time in T-SqlConverting UTC to Central TimeConverting VARCHAR to SMALLINTCopy user mapping and server roles from one user login to anotherCopy a stored procedure from another database via scriptingCopy all SP's from one Database to another Database using a scriptCopy constraints and indexes from one database to anotherCopy same data into multiple rowscopy stored procedures from one schema to another in a sql server database through batchCopy table from one server to anotherCopy table Structure including primary keys, index etc.Copy tables with all constraintsCorrect way to run multiple sql scripts from one 'master' script? with logs etc.Could #TempTable within SP cause lock on tempdb?Could not complete cursor operation because the table schema changed after the cursor was declaredCould not continue scan with NOLOCK due to data movement -errorCould not convert the data value due to reasons other than sign mismatch or overflow. ADSI ProviderCould not find prepared statement with handle %.Could not find stored procedureCould not implicitly convert range values type specified at ordinal 1 to partition function parameter type.Count consecutive month reset if gap in monthsCount decimal without functionCount Distinct based on another column in the same tableCount distinct records per month based on the year filterCount null value from a table for each columnscount of columns of stored procedure in sqlcount of columns with non-zero valuesCount of unique combinationsCount subset of rows in subquery?Count The Number Of Rows Inserted Per DayCount(*) with Partition by producing the wrong result.Count(Distinct): missing operator error?Counting Blank spaces between two words in stringCounting Carriage returnsCounting the '-' (Hyphens) in a stringCountry, State and City SQL DatabaseCouple of questions on SQL Server 2008 - BeginnerCovert sql output into excel and schedule the automate job that runs every friday and send email with attachment .Coverting UTC date time to local date time in sql serverCR and LF not working in a SELECT statementcreate a job without sql job agentcreate a matrix table using sql queryCreate a matrix table using t-sqlCreate a new database from existing mdf file.Create a percentage from two SUM valuesCreate a query to remove last two characters of a stringCreate a view and change the data types of some variablesCreate a writable view in SQL DBcreate an index on just the date part of a datetime fieldCreate Database Failed - Primary file must be at least 3 MB ...create dynamic tables with select * into using dynamic table namescreate fixed length text file from sql datacreate fulltext index (if not exists)Create function with CTE codecreate login error:Create multiple query result in sp_send_dbmailCreate stored procedure if doesn't exists in sysobjectsCreate Stored Procedure in Master DB or MSDB?Create stored procedure on linked serverCREATE TABLE - BIT DataType and Default ValueCreate table from stored procedureCreate table helpCreate Table with current date as part of the table nameCreate Table with variable nameCreate temp table and insert records in a while loopCreate trigger based on two tablesCreate trigger does not work inside if statementCREATE TRIGGER IF FIELD IS EMPTY DO NOT INSERTcreate trigger on northwind datase .. please helpcreate TRIGGER remove white spaces from a fields in table-scan and fixCreate Trigger to delete old data first before Inserts.create view as EXEC spCreate view dynamic pivotcreate view from stored procedureCreate view with NOLOCKCREATE VIEW WITH PRIMARY KEYCREATE/ALTER PROCEDURE' must be the first statement in a query batch.Create/Alter view with declare variableCreated a new column in a select statement .How to use that column name in CASE statement in the same select staetmentCreating a blank text file using SQL code?Creating a file system folder by using a stored procedureCreating a join based on calculated fieldsCreating a Stored Procedure - Account and transactionCreating a trigger that will increment a column in one table after an insert has been made in another tableCreating a trigger to automate insert into another tablecreating a view using temporary tableCreating a view with a case statementCreating an Aging report QueryCreating an instance of OLE DB Provider " Microsoft.jet - OLEDB.4.0" for linked server "SNE_SNAP2014"Creating dummy headers (column names) with union allCreating multiple stored procedures at onceCreating Permanent Temporary tablesCreating table failed because of the minimum row sizeCreating temporary/virtual row on SELECT command of sql-serverCreating user if not existscross apply and stored procedureCROSS Apply Showing NULL ValuesCross Apply versus CTE. What is better in terms of performance?CROSS APPLY vs. ROW_NUMBER() OVER with JOINCross Join Performance IssueCrosstab/Pivot with Text Columns and Text DataCTE and UNION QueriesCTE into temp tablecte order by clause erorCTE query and OpenQuery mixCTE To Sum DataCTE use multiple time in single Store ProcedureCTE with dynamic SQLCTE with multiple update statements?CTE, VIEW and Max Recursion: Incorrect Syntax Error Near Keyword OptionCummulative percentage in SQL Server 2012Cumulative DIfference/Running Difference in SQLCurrent Date minus one yearCurrent month and Previous MonthCurrent Month vs Previous Month within single stored procedureCurrent Timestamp shows wrong timeCURRENT WEEK SQL QUERYCursor already existsCursor vs BatchCURSOR vs. CTECursor with input-parameterCursorfetch: The number of variables declared in the INTO list must match that of selected columns.Cursors vs while loopCustomize email message - SQL Server AgentData Archiving/Purging processData conversion from non-unicode character to unicode characterData PumpData Truncated using FOR XML PATHData type equivalent in T-SQL for the CLOB data type in PL-SQL - SQL Server 2012 and superiorData Type for saving Base64 image string into SQL databaseData type for unsigned integer?Database cannot be opened because it is offlineDatabase Email - Multiple Attachments.Database is already open and can only have one user at a timedatabase user can't findagent jobDataconversion: STRING (yyyymmdd) to DATEDATALENGTH of Image Column not equal to size of fileDataType Bigger Than VARCHAR(MAX)/NVARCHAR(MAX)Datatype for storing pdf files?Date Conversion CONVERT function not workingDate diff Function giving negative valuesDate difference in Days,hours minutes and seconds.DATE FORMAT MMYYYY for current dateDate format with slashes instead of dashesDate is showing 1900-01-01 instead of blankdate or time that are too negative or large to display as #########Date time in Open QueryDate Time issue while exporting data from sql server to csvDATEADD convert minutes to timeDATEADD excluding weekends and holidaysDATEADD in Where ClauseDATEADD with variable datepart?dateadd(day,-1,getdate()) vs. getdate() - 1Datediff format Hours, Minutes, Seconds and MillisecondsDatediff on same columnDATEDIFF only returns integersDATEDIFF Week - First day of week querydatepart(dw, date)Datetime - Out of range Datetime ValueDateTime - Time round off to starting of dayDateTime filter is not returning correct resultsDatetime in Indian Standard TimeZone (IST)DateTime Interval in "DD HH:MM:SS"Datetime Parameter set to Null works or what's wrong?DATETIME To Format mm/dd/yyyy hh:mm am/pmDatetimeoffset to DateTime Convert issue in SQL Server 2016 DatabaseDAYS 360 FunctionDB2 Integer YYYYMMDD to a date MM/DD/YYYY within SQLDBCC CHECKIDENT PermissionsDBCC CHECKIDENT: does the seed accepts null?DBCC SHRINKFILE: Page could not be moved because it is a work table page.dbms_lob conversiondbo and [] for table name sources ? Correct meDeadlock in tempdbDeadlock on insert and select on same tableDeadlock while inserting into sql server table from multiple machinesDeadLocks on e_waitPipeNewRow Wait typeDecimal (18,5) to NUMERIC (15,6) ConversionDecimal comma/point in SQLServer - how to control outputDecimal separator occasionally changes to commaDecimal value from Year Month DaysDeclare multiple values in a variabledeclare statement in loopsDeclaring a table variable inside a loop does not delete the previous datadeclaring local variables in an if statementDECODE equivalent in SQL SERVERDecrypt Password using MD5 algorithm in sql serverDecrypt the encrypted store procedure through the T-SQL programming in SQL Server 2005Decrypt the hashed password in SQL Server 2008DECRYPTBYPASSPHRASE sometimes returns NULL for the same input and passphrase.Default DATE and uniqueidentifier parameters?Default sort order - Open Table - Select without order bydefault to '0000-00-00 00:00:00.000' if null datetimeDefaulting a column to be Upper caseDefining a password column in a SQL table - SQL Server 2005Delete all records in SQL Server Management Studio TableDelete all rows from a temporary table except those meeting a selection criteriadelete bakups older than 1 daydelete both parent and child table records in one query.Delete character and everything after itDelete comma from table column dataDelete data from all tables in a schemaDelete data in Excel using Openrowset?Delete from Where ExistsDELETE From with sub querydelete large number of rows without growing the transaction logDelete Query is Performing too slow with around 6 million records to deleteDELETE RECORDS FROM VIEWDelete Records where total amounts equal 0delete row or sheet in excel from queryDelete statistics option is disabled when you try to delete statistics in sql serverDelete top 1000 rows from Table in 2 batchesDelete top n rows using joindelete with exceptDeleted Microsoft SQL Server folder from C: Drive ...Deleting a database in RESTRICTED MODEDeleting all tables in a schemaDeleting all tables in database older than 14 daysDeleting duplicate records in a VERY LARGE tableDeleting records from Self-Referencing Tabledeleting rows with null value ba column in sqlDELIMITER through SQLCMD commandDelta process in Stored ProcedureDENSE_RANK() : Start ranking by a no. of my choice and not by 1 ... Can I?DENY UPDATE/DELETE/INSERT on specific columns to ALL usersDetect Current IDENTITY_INSERT Settings?Determine if #TempTable has rowsDetermine if the database is in Single User or Multi-UserDeterministic GUIDsDIFFERENCE BETWEEN "INSERT INTO" AND UNION IN SQLdifference between (WITH [tablename] AS) and (DECLARE @[tablename] TABLE)Difference between APP_NAME() and PROGRAM_NAME()difference between char(13) and char(10)Difference Between DB Log File and Transaction log fileDifference between JOIN and Multiple Tables in FROMDifference between nonclustered and composite indexdifference between Numeric and Money Data type in SQL ServerDifference between osql and sqlcmd ?difference between Outer apply and outer joinDifference between read committed and read committed snapshot isolationdifference between scalar, inline and table valued functionsdifference between select * and select column nameDifference between standard sql server and sql server developer editionDifference Between Two Dates Excluding The Weekends.Difference between Union All and Full Outer Joindifference between union all, union and intersect and minus in sql serverdifference between updatable views and non-updatable viewsDifference of Dates in MillisecondDisable or block TRUNCATE commandDISABLE Trigger ALL on database not workingdisadvantages of columnstore indexdisadvantages of partition table?Disconnect all connectionsdisconnect all the users from databaseDisplay datetime without using colon in the scriptDisplay zero in place of NULL value in date time columnDISTINCT Clause in Cursor SELECT.Distinct count with multiple columnsdistinct vs group by performance wiseDivide time into Morning , After noon , Evening and NightDo I need to INCLUDE the primary key in an index or not?Do not select the last rowDoes anyone know how to find a period character in a string?Does case sensitivity affect variable names in stored procedures of case sensitive databases ?Does LIKE support (or can you code for) an optional character in a string?Does order matter when doing INSERT?Does SmallDateTime DateType Not store the seconds in TableColumn in Sql server 2000?Does SQL Server Support the "MINUS" Keyword?Does the dataReader permission can create global temp table?Doing bulk insert with a bit columnDouble in sum result from sum and group by queryDrop all constraints in DatabaseDROP ALL USERS FROM DATABASEDrop and Create Constraint on Very Large TableDrop and recreate table in stored procedureDrop Database Error Msg 3701, Level 11, State 1, Line 1Drop or Truncate a particular partition.DROP Table - How to force a delete of a table when constraints are missing?DROP TABLE does not seem to work.DROP Table Taking FOREVERDrop temporary tables from tempdbDrop User-Defined Table TypesDROP/Truncate Table HangsDropping multiple usersDummy column in a queryDumping varbinary(max) column values to files on harddisk using a SQL scriptduplicate table names with multiple schema namesDuration of a sql job executionDynamic order byDynamic Pivot Conflicts with existing name errorDynamic pivot table with date rangeDynamic Pivot with a where clauseDynamic Query and print @sql testdynamic query in viewDynamic query: EXEC - Need to get a return value from queryDynamic SELECT column namesDynamic SQL - creating a temp table with a name that includes a random numberDynamic SQL for Primary Key Declarationdynamic sql if conditionDynamic Sql Pivot- how to sort columnsDynamic SQL query cannot store more than 4000 characters even with NVARCHAR(MAX)dynamic sql single quotesdynamic SQL to list all tables in a database with row count for each tabledynamic sql with CTE and temp tableDynamic SQL with In ClauseDynamic wrapping column names in square bracketsDynamically checking job status with T-SQLDynamically create variable names in TSQLDynamically set IDENTITY_INSERT ON/OFF in stored procedureEASY ONE: ALTER DATABASE with VariableEffect of NOLOCK on a Viewemail from mssql if some condition is trueEncode from utf-8 to SQL Latin1 General CP1 CI ASEND ASEnum flag in SQLEnum in Sql serverEquals Today's Date in SQLEquivalent of NOCYCLE in SQLErreur lors d'execution d'une fonctionErro: The specified @job_name ('my_job') does not exist.Error - Incorrect syntax near 'int'.\r\nIncorrect syntax near '?'Error - Logical file is not part of database. Use RESTORE FILELISTONLY to list the logical file namesError : The label 'http' has already been declared. Label names must be unique within a query batch or stored procedure.Error :The cursor is READ ONLY.Error :UNION ALL view 'address' is not updatable because a partitioning column was not foundError :Update or insert of view or function 'af' failed because it contains a derived or constant field.error 'DAYOFWEEK' is not a recognized built-in function name.Error " "The text, ntext, and image data types are invalid for local variables"Error "The certificate, asymmetric key, or private key file is not valid or does not exist; or you do not have permissions for it."ERROR [HY000] [DataDirect][ODBC Progress OpenEdge Wire Protocol driver][OPENEDGE]Invalid date string (7497) (pgoe1022.dll)Error = [Microsoft][ODBC Driver 13 for SQL Server]Unable to open BCP host data-fileError =UTF-8 encoding (code page 65001)error 1603 installing microsoft sql native clientERROR 214:Procedure expects parameter '@statement' of type 'ntext/nchar/nvarchar'.Error 3930, The current transaction cannot be committed and cannot supportError 8623error computed column or UNION operator while trying to insert recordsError converting data type nvarchar to bigint.Error converting data type nvarchar to floatError converting data type varchar to bigint.Error converting data type varchar to smalldatetime.Error creating Linked server to access data from SQL to oracleError executing ALTER TABLE DROP COLUMNError handling in user functionsError Handling with Bulk InsertError in inserting datetime in ms sql..Error in Query : Msg 258, Cannot call methods on varchar.Error in query: [..not a valid identifier]Error in Update SP using TableValued parameterError in view when using CONVERT(Date,GETDATE())error message when remove log fileError Msg when sending email using sp_send_dbmailError severity levels greater than 18 can only be specified by members of the sysadmin role, using the WITH LOG option.Error validating the default for columnError when calling a function from inside a functionError when converting Nvarchar to Float were Null exist in a column being converted(When Joining two table)Error when referencing Foreign KeysError when trying to alter column typeError while attaching data from the SQL server management studio 2012Error while creating clustered index viewError while creating ViewError While enahling CDC(Change data capture) on Table.Error while executing sp_OAMethod SendError while inserting record using OPENQUERYError with "The log in this backup set begins at LSN...."Error with Linked Servers - "Deferred prepare could not be completed."error-The data types varchar and varbinary are incompatible in the add operator.Error: 'You can only grant or revoke permissions on objects in the current database'Error: "Cannot schema bind function 'dbo.test' because name 'dbo.test' is invalid for schema binding. Names must be in two-part format and an object cannot reference itself."Error: ALTER TABLE ALTER COLUMN ph failed because one or more objects access this column.typeError: Cannot drop the database because it is being used for replication.ERROR: date/time field value out of range:Error: Invalid object name 'UPDATED' in triggerError: query processor ran out of internal resources (How can we prevent this)Error: The data types varchar and varchar are incompatible in the modulo operator.Error: the database could not be exclusively locked to perform the operation in sql server 2008 ?Error: Unable to begin a distributed transactionError:"XML parsing: line 2, character 15, A string literal was expected"Errors 2601 and 2627Escaping a whole string variable in T-SQLEvaluate percentage using two columns of a tableExact Match in sqlExact Word Matching in a Comma Separated Column in SQL ServerExcel data import Truncate Data length to 255Excel date conversion to sql dateException Handling in SQL FunctionsExclude NULL-Values directly from ADSI-SELECTexec and suppress outputExec function - Must declare the table variable "@Table".EXEC in SQL Functionsexec sp_executesql much slower than inline SQLExecute a Stored Procedure for each row of a select statementExecute a stored procedure of another serverEXECUTE permission was denied on the object using linked serversexecute sp_executesql into Table-Valued functionExecute Sql query based on condition using Case statementExecute SQL Query dynamically in multiple databasesExecuted as user:. The step was cancelled (stopped) as the result of a stop job request.ExecuteScalar returns 0 (null) but INSERT is successful.Executing BCP in stored procedureExecuting SQL directly; no cursor.executing stored procedure from different serverExecuting stored procedure with input parameters using sp_executesqlExecuting the batch file from SQL Server Agent jobExecution of user code in the .NET Framework is disabled. How to resolve?Execution plan Shows distinct sort when order by not in SQLExpecting ConversationExpecting Msg 207, Level 16, State 1, Line 1 Invalid column name 'b'.Explicit conversion from data type int to date is not allowed.Explicit value must be specified for identity column in table MyTable either when IDENTITY_INSERT is set to ON or when a replication user is inserting into a NOT FOR REPLICATION identity column.Exponential expressions are failing with "Arithmetic overflow error converting expression to data type float."Export a SQL Server Result Set from SSMS to ExcelExport BASE64 content to files with BCP UtilityExport image content from database as a fileExport in Excel With using OPENROWSET from Stored Procedureexport multiple sql results into single excel sheetexport nvarchar(max) to text fileExport To Excel With Column FormattingExporting CSV files from SQL Server Management Studio 2014Exporting Data with Text qualifierExporting numeric query result in the right formatExporting Stored Procedure results to ExcelExporting temporary table to excel spreadsheetExtract a substring from a varchar(x) variable formated as XML?extract date from text string - Transact-SQLExtract directory path from the file path with file nameExtract Image data (storing xml file) from sql server table, shred xml file and load to tableExtract integer portion?Extract multiple strings between multiple characters in SQL Server 2012extract string between two characters/string, first character is 'Test Name:' and second character is line break i.e., <br> or end of line.Extracting domain name from FQDN fully qualified domain name see exampleExtracting only year from getdate() function...Extracting substring between two characters OR Delimeters using TSQL,SQLServer 2008Extracting time from Date and converting it into 12 hour timeextremely slow: WHERE not exists (select 1 from...failed because it contains a derived or constant field.Failed to retrieve data for this request.Failed to update database because the database is read-only.Failure when converting character string to uniqueidentifierfast way to join on "like" operator sqlFaster for xml path('')Fastest Way to Update Rows in a Large Table in SQL ServerFASTFIRSTROWField values from another table as column headers for queryFilestream columnfilter out rows in table data which have non-english charactersFind a database size limit from within the SQL ServerFind a String inside nvarchar(max)Find all rows where the value in one column only occurs onceFind All Special Characters in a SQL ServerFind and insert missing recordsFind cascading deletes that effect a specific tableFind creator of a table - SQL Server 2005find database and table from object idFind database of the SQL jobs - SQL server agentfind datatypes from stored procedureFind date closest to getDate()Find FQDN using TSQLFind Hexadecimal valueFind IP address of Server instanceFind last record update or inserted dateFind match between two string fields.Find multiple substring using a single query in single columnFind Multiple Values in a stringFind Non Numeric Value in column?Find Number of Occurences of character in Given StringFind object ownerFind partitions, row count of each partition of a partition tableFind root of each ID in tree table SQLFind rows divisible by amountfind table names of the index names in sql server 2000Find the Bad Row: Arithmetic overflow error converting real to data type numeric.Find the date of the nearest Monday to a given dateFind the difference between 2 consecutive rows in a sql tablefind the range between two decimal numbersFinding duplicate values for a set of columns in a tablefinding duplicate words/phrases in a stringFinding Duplicates with DISTINCT and HAVINGFinding last occurrence of a space in a stringFinding spaces in a stringFinding the second space in a stringFirst 3 columns data of a table without specifying the column names - SQL ServerFirst and Last day of previous month from getdate()Fiscal Week NumberFixed Prefix Identity ColumnFixing this TRIGGER SyntaxFlashback query equavalant in Sql serverFlatten a Parent-Child Hierarchy dataFloat Data Value and Scientific Notationfloat to datetime sqlfn_dblog [Log Record] ColumnFollowing query runs in activitymonitor in tempdb.FOR JSON - How to prevent escaping of data values?FOR XML output to a fileForce to close existing connections when restoring existing databaseForce to complete query, ignore errorsForeign key <name> references invalid table <Table name>.foreign key constraint when attempting to truncate tableForeign key references a two column primary keyFORMAT date versus CONVERT date, huge performance differencesFormat equivalent in SQL Server 2008Format for a bigint parameter in RaiserrorFormat number with comma and 1 decimal pointFormat number with Thousands separator? 10000 --> 10,000Format SSN in SQL ServerFORMAT works in 2012 but not in 2008 - What am i missing?formating msdb.dbo.sp_send_dbmailFormatting a date as CCYY-MM-DDForward Slash in Field Names FOR XML AUTOFreeing up space in tempdbFrequently Used Stored Procedure Just Hangs and Does Nothing ... WHY?Full Outer Join minus Inner Join?FULL OUTER JOIN with multiple ON / AND clause conditionsFullText Search with symbols: #,$,%,^,&,(,)Fully Qualified NamesFunction for last Sunday of the monthFunction Getdate() is not workingFunction returns int instead of floatFunction to find unicode characters in a string and replace them with a blankfunction to return multiple values in SQL SERVERFunction with CASE StatementsFunctions not recognized in sql server 2012Fuzzy String MatchingGeeting TIMEOUT while executing a Stored Procedure.Generate a alphanumeric id for primary key min 4 digitsGenerate all the quarters between start and end datesGenerate email with Embedded Image using SQL ServerGenerate n rows in the same queryGenerate random number between Two numberGenerate random number which is not exist in tablegenerate random string of length 5 [A-Z][0-9]Generate the Fiscal Calendar For DateDimensionGenerating a Database size reportgenerating a list of sequential datesgenerating custom uniqueidentifier sql serverGenerating Insert Script using Select statementget 10 digit number from stringGet all child and grand child of parentget all months between two dates in sql with or without dataGet an alert if the query is runnning from more than 5 minutsGet column name key value when error occursGet Column Name which Causing Error in SQLGet column name with value?Get column names of table on linked serverGet connecting client PC's name or IP addressGet current directoryget current schema nameget date from GETDATE() without timeGet definition of an index from query in SQL ServerGet Difference between two dates as Hours, MinutesGet First Node of XML In SQL QueryGet initials from first and last nameGet last 3 previous months records except currentGet Last 6 months data file growth on each databaseGet list of email address from a stringGet list of users from ADGet Max ID from Identity columnGet max length of every column of a table in one queryget MIN date from all tables and columnsGet MIN of Login time and MAX of logout time in sql server.Get Nth column in a tableGet only first 2 digits from integerGet only Numeric values from string with alphanumeric values in SQLGet Previous Business day using custom Holiday tableGet SQL Data from temp table into ExcelGet substring from a text containing quotesGet substring of file name up to the last underscoreGet the comma separated value and assign to other variable using sql serverGet the Execution Plan of an SPIDget the half of the year (like quarter)Get the last inserted uniqueidentifier fieldGet the quarter of a given date in datetime formatGet the TOP 1 of a Select DistinctGet the windows UserID who is running the SQL Server Agent Job manuallyGet Topmost Parent for a given row in a Parent-Child hierarchy tableGet Total Size of Database with a T-SQL query.Get values of column in sql server enclosed with single quotes using dynamic sqlgetdate with current date and time 00.00.00.000Getdate() - 1 day of data extraction in queryGetDate() - extracting last 7 days datasetGetDate() + specific timegetdate() and getutcdate()GETDATE() get previous month dataGETDATE() retrieve date range using getdate()Getting "Invalid object name" by creating a temp table and inserting rows right awayGETTING A MONTH BEFORE IN T-SQLGetting All Days In a MonthGetting all months start and end dates between two datesGetting Available Server Disk Space (Total Size / Free Space) using T-SQL on SQL 2000Getting data for same month last yearGetting History of queries run on a databaseGetting Identity values after a bulk insert in SQL Server 2008Getting Invalid filegroup errorGetting last Saturday from a given dateGetting last week same day ,last month same day etc date for today.Getting LCK_M_IX wait typeGetting list of files, Modified Date from Windows folders/Subfolders using T-SQLGetting rid of 1900-01-01 00:00:00.000Getting schedule ID in job stepGetting TDS protocol stream is not valid issueGetting the data between Sunday and Saturday of last week.(DAYS NOT DATES)GO command vs EXEC commandGrant create procedure on schemaGRANT CREATE TABLE/PROCEDURE to ROLE on Specific SchemaGrant Execute Right to a loginGrant SELECT, INSERT, UPDATE, DELETE on all tableGranting UPDATE for only certain columns in a tableGROUP BY a column with NULLsGROUP BY a specified time intervalgroup by alias name?Group by data into 15 minute intervalsGroup by with partition over and pivotGroup By, needing to exclude a value in group byGroup data by weeksgroup_concat in SQL Server 2012 with ORDER BY another columnGrouping by first four charactersGrouping Records into buckets of 15 minutes ....GUIA - Como buscar una columna en todas las tablas / GUIDE - How to search a column in all tablesHandle Date Time with Null ValuesHandling Datetime parameters in stored procedureHandling Multiple Columns returned by a subquery with an IN ClauseHandling Single Quotation within Dynamic SQLhas fewer columns than were specified in the column list.Help in Group By clause for excluding null valuesHelp to get first word from Name columnHelp with ALTER TABLE SWITCH (IDENTITY COLUMNS)Help with Bulk insert with text qualifier "help-Incorrect syntax near the keyword 'BEGIN'.Help! Create index with substringHex to StringHexaDecimal to string conversion in sql serverHide SQL SELECT results in the Output window?Hiding Results Pane from Exec SPHMAC-SHA256Ho to Compare two almost similar StringHorizontal sum of columns put in last column of same tableHost_name() in triggerhow to create a month name as a column for a date range dynamically in sql server.How to Track DML operations in sql serverHow big can a temp table be?How can I check who has created the table in sql server 2008?How can I convert Float numbers which are represented as 'E-05' to full precisionhow can i enforce a null value in int type element in xml?How can i execute multiple sql queries with one database hit ?How can I export one column as a separate text file for each row?How can i find out who did the update OR what changed a record? Please Please help is needed!!How can I get a row count of CTE recordset?How can I get sql to get the dates of first Saturday in each month between two datesHow can I get the “file Info” of all files in a directory into a SQL Server 2012 database table?How can I get the all databases names with it's db_owners in Sql server instance ?How can I get the Thursday of current week as a date?How can I have Varchar(MAX) or Text as Stored Procedure Parameter in SQL 2000?How can I improve Inner Join performanceHow can I query the partition scheme and partition function used by a particular table?How can I read file from filepath and Insert in to SQL Server ?How Can I Release Lock on Tables?How can i remove char which I don't see in result set but still they are thereHow can I report progress on a long-running queryHow can I see what queries were executed at a specific time?How can i select a max of column witch type is unique identifierhow can i select all columns except one in sql server queryHow can i select the step count of a recursive CTE ?How can i set value of @variable inside with cte ?How can I treat ZERO and NULL the same in a WHERE clause?How can I use the function 'CTE' with multiple base tables and Delete the dupulicated row?How can I view the Locals Window?How can the rownum of oracle be represented in t-sql???How can we change the default length of DateTime field in SQL Serverhow can we put semi colon in web.config connectionStringsHow can we rollback mistakenly UPDATE statement change in SQL Database.?How can you get current stored procedure name via T-SQL?How can you get the current database name via T-SQL?how create flag variable in sql using conditionHow do I achieve - in SQL - something like "On Error Resume Next" in VB?How do I add a securable to a database role?How do I aggregate on more than one column within a PIVOTHow do I call a T-SQL Function?How do I check if #tempTable exists?How do I check if ANSI_NULLS is turned on or not?How do i check weather a trigger exists in a database?How do I collapse contiguous Date Ranges in SQL?How do I concatenate Year, Month, and Day into an actual date?How do I convert a timestamp to 'YYYYMM' in Teradata?how do i delete records from the User defined table types?How do I export BLOB (varbinary max) column to Excel or CSV file without xp_cmdshell?How do I filter my SQL Server Query by UTC AT TIME ZONE 'Eastern Standard Time'How do i find Logins with NO Database mappings?How do I find which database a stored procedure existsHow do I force a job agent step to failHow do i generate duplicates based on a column valueHow do I get FOR XML to write data with carriage return/line feed at end of elements?How do I get the fraction values for every row in a tableHow do I increment a number in a SELECT statementhow do i increment variables without having to insert them into a second table? no insert!How do I Join Calendar table with other tables with sparse datesHow do I pass a Date Parameter to a Oracle via an OPENQUERY?How do I preserve leading zeros in SQL when I export to Excel sheet?How do I replace entire row data from one table with another?how do i replace the usage of "connect by prior" in SQL SERVER 2008-R2 ?How do I return a TRUE or FALSE using a Stored Procedure?How do I run update query without committing?How do I use a variable to specify the column name in a select statement?How do I use my CURSOR Variable in a WHERE ClauseHow do I use prompt in TSQL?How do I view the code of a partition function/schema?How do tell the difference between the results of two result sets?How do we reduce performance issue by using order by clause?How do You Allow NULLs in a Foreign KeyHow do you check if an index exists for SQL table column?How do you combine an insert and update trigger together?How do you get a TOP 1 in a CTE?How do you make DISTINCT case sensitive?How do you trigger a task from SQL Serverhow do you write a case statment in Microsoft Access SQL viewHow does the IN ( ) clause affect performance?How find host name (IP Address) from log File?How finding the creator of an old stored procedure - SQL Server 2014-2016How get columns from Cursor "Select * From ..."how i can solve " Incorrect syntax near the keyword 'END' " problem.How i replace IN CLAUSE into JOIN in SQL Query ?How important to specify dbo within single schemaHow is it possible to use Index Seek for LIKE %search-string% case?How LOB logical reads HappensHow many columns we can create in a tableHow much do CAST statements affect performance?How Send POST Request with Authorization key using stored procedureHow to allow truncation of Data while inserting from one table to another tabeHOW TO : send sql mail + attachments dynamic from specific folderHow to access Oracle table from SQL Server ?How to add 0's before the string in MS SQL server?How to add a column to this stored procedure?how to add a comment to a tableHow to add a Totals column in a Pivot table?how to add a where clause by parameter in a stored procedureHow to add colour to html table based on its values?How to add columns to temporary table in loopHow to add date and time to get datetime2How to add Dynamic Column to my SQL Select StatementHow to add FILESTREAM attribute to an existing column?How to add Identity column in a viewHow to Add Multiple Column's Sum in Pivot Table...???How to Add Nameless DEFAULT CONSTRAINTHow to add new line in SELECT Statementhow to add string using a variable in where clauseHow to add the condition to CROSS Apply ?How to add trailing zeroes to Float and nvarchar Data Type in SQL QueryHow to add uniqueidentifier data type column in existing tableHow to alter a non clustered primary key constraint to clusteredHow to alter an existing table column as identity without dropping the table?How to alter column to identity(1,1)HOW TO APPLY CASE WHEN IN DATEDIFF?How to assign a value into a variable from a CTE?How to assign read only access for a database to a single user?How to assign results from xp_cmdshell to a SQL variable?How to assign the result of 'FOR XML PATH' to a variable? Impossible?How to automatically reseed for specific table max value + 1How to automatically zip SQL backup file?How to avoid "'CREATE VIEW' must be the first statement in a query batch" when I need to use SET QUOTED_IDENTIFIER ONHow to avoid clustered index scan in this queryHow to avoid cross joinshow to avoid duplicates in CROSS JOIN QueryHow to avoid group by many columnsHow to avoid null values in PIVOT result setHow to calculate campdate > todays date + 45 days in sql queryHow to calculate max value for decimal typehow to calculate MTD, QTD and YTDhow to calculate the fiscal month start and end dates based on the given dateHow to calculate the size of a VARBINARY(max) field or variablehow to call a function from inside a trigger..with a cursor?How to call a stored proc with optional parameters using sp_executesqlHow to call Stored procedure in Select statement.how to call webservice from tsql?How to Capitalize the first letter in each word in SQLHow to capture the second result set from a stored procedure in a temporary table.how to change textbox font's color based on some value ssrs tabular reportHow to change database back to NORECOVERY MODE FROM RECOVERY MODEHow to change database dynamically inside cursor ?How to change date to End of Day?How to change Owner of ReadOnly Database which is configured with logshippinghow to change row's name in the queryhow to change the default SQL Time zone to GMT -03:00How to Change the Tempdb Collationhow to check a date is within current week or current month or next month USING T_SQLhow to check backup status in sql serverHOW TO CHECK EXTENDED PROPERTIES IF EXCISTS OR NOT 'VERSION'How to check File is Exist or Not in Directory using T-SQL Store Procedure - SQL Server 2005 ?how to check if a table is partitionedHow to check if data in one table exists in another tableHow to check if the file exists or not before bulk insertHow to check if two returned result sets are the same?How to check referential integrityHow To Check SQL SERVER Uptime Through T-SQLHow to check the Existence of a file & its size using T-SQL in SQL Server 2000?how to check whether a number is integer?How to check which stored procedure is running ?how to checking the ip 4 and ip 6 address valid or not in already existing scalar function in sql serverHow to clear uncommitted transaction? (TSQL 2000)How to code DateTime-Literal in SQL ServerHow to combine multiple result sets from WHILE loop?How To Comment Stored Proc Best PracticesHow to commit adding one additional record to an SQL Server database tableHow to compare 2 NVARCHAR(MAX) columns in same table ?How to compare a Date with GetDate() in SQL Server 2000 ?how to compare from datetime only date,hours and minutes.How to compare Image data type in SQL SERVER and BLOB in Oraclehow to compare image/varbinary columnhow to compare two column e.g. select * from table1 where column1, column2 in (select column1, column2 from table2)how to concat multiple rows with same id in sqlhow to concat year(date) to create a new date 0101 with yearHow to concatenate N Prefix to a parameter in sqlserverhow to concatenate special characters in TSQL ?How to concatenate stored procedure varchar variablesHow to concatenate the string and Parameter passed to stored procedureHow to concatenate varbinary?How to conditionally OUTER APPLY with a functionHow to configure SET XACT_ABORT ON permanently with Database EngineHow to connect two sql database in one query?How to continue execution after error occurs in Stored Procedure ?How to convert a DateKey representation of a date back into a DateTime data type?How to convert a decimal(18,4) to a decimal(2,2)?How to convert a float to timestamp or datetime?How to convert a number stored as bigint to numeric to include 2 decimal placesHow to convert Calendar Month Year to Fiscal Month YearHow to convert client date time to UTC date time in sql serverHow to convert comma separated value(120,000 or 12,000) to INT (120,12)How to Convert date formart yyyymmdd to yyyy/mm/dd in sql server 2008How to convert date format from 'yyyy-mm-dd hh:mm:ss:mss' to 'yyyy-dd-mm hh:mm:ss:mss' in T-SQL.How to convert date to integer value in sql serverHow to convert Date to mm/dd/yyyy hh:mm:ss: AM PMHow to convert datetime to time in 24 hrs format?how to convert english to arabic christian date like ينايرHow to convert from decimal to binary in SQL?How to convert HH:MM:SS coulmn in Decimal hoursHow to convert horizontal row into vertical SQL Serverhow to convert hours to days and months correctlyhow to convert image to string and string to image.How to convert long date to sql date formatHow to convert Minutes to hoursHow to convert number of days into Months and daysHow to convert nvarchar to datetime data-type?How To Convert nvarchar to DateTime in Where Clause please....How to convert pl-sql to t-sql?How to convert Query Result into stringHow to convert rich text data field to plain textHow to convert Seconds to HH:MM:ss formatHow to convert single digits into two digits in a string ie. 1 to 01how to convert Time format HH:MM:SS to decimal pointHow To Convert Unicode and Hexadecimal Charactershow to copy Previous Cell value when there is null valuehow to count number of records inserted in between of running insert statementHow to count occurrences of two or more characters in a stringhow to count total left and total right child of a user in downline in a MLM binary TreeHow to create a dynamic multi-line function in SQL ServerHow to create a Folder using a SQL Query?How to create a Local Temp Table using command sp_executesqlHow to create a stored procedure that will create a tableHow to create a Stored Procedure which will truncate and insert two tablesHOW TO CREATE A TRIGGER TO UPDATE A DATE FIELD WHEN RECORD IS MODIFIEDHow to create a view on SQLServer 2008 as an OPENQuery select to a MYSQL linked serverHow to create a view with an auto number column?how to create an sql query to getting profit of each productHow to create and fill a random varbinary table?How to create dynamic Insert Query Stored ProcedureHow to create mdb from sql or sql server???how to create nested table in sqlHow to create ntext Variable in Stored procedure?Required help to execute Query more than 8000 character within a loop.how to create number 1 to 100 using quaryHow to create partition in a large existing table?How to create rollback scriptsHow to create SQL UNION clause with two queries that BOTH have a WHERE clause?How to create table variables dynamically?How to create the table name without username attached to it?How to Create view from multiple viewsHow to create view from the output of a dynamic sql?how to create view with default valueHow to current logged windows user name in tsqlHow to deal with this problem?how to debug a function step by stepHow to debug tsql code in Visual Studio since SSMS v18 does not have a debuggerhow to declare a variable similar to table column type?how to declare variable in table valued functionHow to delete ALL jobs from sql server?How to delete data that not exists in another table?How to delete duplicate rows from temp table?How to delete last 6 months data using storedprocedure where table does'nt contains timestamp fieldHow to delete or drop a cursor?How to delete Row from table which has FK Constraint on same tableHow to delete/drop all the tables from SQL Server Database without using Enterprise Manager?How to deploy Stored ProceduresHow to determine the Number of Cores in sql server 2012How to disable and enable Unique Constraint of a tableHow to disable dataset returned from xp_cmdshell?How to disable transaction log for specified tableHow to display '&' as '&' not as & in t-sql resultHow to display a multi-level hierarchy?How to display columns side by side in sqlserverHow to display values with percentage % symbol in Query ?How to divide row 1 with row 2 using sql?how to divide two int numbers and get a fraction ?how to divide varchar values data with decimalHow to do CONCAT two numbers in sql server?How to do a Bulk Insert with LF row terminator? Real error may be something different . . .How to do super fast OFFSET and FETCH ROWS in sql server?how to download sql server 2016 developer editionHow to drop all indexes and Re-Recreate it in single scriptHow to drop several stored procedureHow to drop/remove temporary tables from TempDBhow to dynamically add leading zeros in sql queryhow to dynamically rename the table in the db?How to eliminate NULL values from case statement?How to execute a batch file / cmd file from t-sqlhow to execute a long (11000 characters) dynamic query using sp_executesqlhow to execute alter statement which truncate dataHow to execute dynamic sql from functionHow to execute dynamic sql in sql server function and return scalar valueHow to execute entire result set of multiple sql statements via sp_executesql?How to execute multiple sql statements in parallel ?How to Execute Multiple Stored Procedures at one time?How to execute procedure in function Sql server ?How to execute query without using MSSQL Management StudioHow to execute sp_executesql for each row in a result set to perform an updateHow to execute stored procedure with a Multiline String Value?How to execute/call a storeprocedure for multiple recordsHow to Exit from SQL Server Function ?How to explicitly set the value of a timestamp(rowversion) column?How to export data to csv file on a scheduled basisHow to export SQL data to Excel SpreadSheet using SQL Query?How to export the data to a file (csv) without using xp_cmdshellHow to extract a very very long text string from a varchar(max) feildHow to Extract House Number from Address line in SQL?how to extract month and year from date columnHow to extract numbers from stringHow to filter out rows where one column does not equal another on a row?How to find values in a column has leading and trailing spaceHow to find a hierarchy of employees, 3 levels deep, using JOINSHow to find a numeric (int, numeric) value in all columns of all tables in database.How to find a word within a string that contains CHAR(13) + CHAR(10) , CHAR(9)How to find all child tables that belong to a parent tablehow to find all databases collation information and change them to standerd one with script.How to find all objects that belong to the specific schema?How to find and eliminate duplicates with very small timestamp differencesHow to find blank values in all columns in all tables in database (sql server)How to find Carriage Return CHAR(13)?how to find combination of column is unique...How to find disabled triggers?How to find Hidden Space/Char in SQL Server?How to find if a Column is used anywhere in the databaseHow to find if Quoted_Identifier is on or off?How to find last login date of a sql login?How to find list of all partitions of a partitioned table?How to find list of all SQL servers in my Organization?How to find list of users having access to a TableHow to find Missing sequence number in T-SQLHow to find multiple strings in the sql databaseHow to find number of Cores through T-SQLhow to find sql stored procedures without NOLOCK statements in a databasehow to find the all databases sizes in sql server 2000 ?How to find the last execution time of stored procedure sql server 2005How to find the most expensive operation in an execution plan - need to read xml and sort on calculated fieldHow to find the space taken by Schema wise in a DB?How to find the SQL Server install directory from tsqlHow to find the user who performed a truncate statementHow to find transaction log backup history using query?how to find whether is a prime or non prime with one select statement?How to find which login/user has modified the record in a table in SQL server 2008.How to find which user has DBO rightHow to fix 'Error converting data type varchar to bigint.'?How to fix an error:"Cannot resolve the collation conflict between "Latin1_General_CI_AI" and..."?how to format a calculated field with 2-decimal placeHow to format bigint values so that 16 digits can be copied to Excel?How to generate Fiscal year from a date columnHow to generate insert table data script programmatically ?how to Generate missing entries for each month/year and assign to a metric without value the previous month's valueHow to generate random date based on date rangeHow to generate random decimal no by tsqlHow to generate random names and mapping to all the tablesHow to generate row number in UNION query in VIEW (SQL Server)how to get 0 if records have empty or null values when column datatype is numeric in sql serverhow to get 5 min data from SQL data baseHow to get 8 Digit Unique Number in Sql Serverhow to get a column index value in SQLHow to get a row count from EXCEPT compare tables query?how to get a user's permission using T-SQLhow to get all date older than 180 days from getdate()How to get all field names in a table using sql query?How to get all the manager of managers above of an employeeHow to get begin and end date of any quarter in sql server 2008how to get count of filesHow to get Current Quarter and Fiscal Quarter for a Date - Fiscal Year starts from 1st AprilHow to get date - last Monday from given date?how to get distinct count of all columns of a tableHow to get Dynamic Column names in SELECT statementHow to get Employee manager hierarchy in Sql ?How to get first 3 letters and year name from a column in SQLHow to get first month of current yearHow to get First Name and Last Name From Full_Name with comma separatedHow to get hardware related metrics of SQL Server through query ?How to get Host name and SQL Instance Name by T-SQLHow to get integer column value Zero as a blank value in Select QueryHow to get last months data when executing a stored procedurehow to get Last week data during any time in this weekHow to get Leading Zero in Single Digit Date using T-SQL ?How to get list of primary key columns using sys.sysobjects & sys.syscolumns ?how to get month end date between two dates.How to get Month name from YYYYMMDD integerHow to get more than 1000 records in querying ADHow to get OLD and NEW values while writing Triggers in SQL Server 2005 or 2008How to get OLD value while writting AFTER UPDATE triggerHow to get records that have same id but different name?How to get rid of Warning: Null value is eliminated by an aggregate or other SET operation.How to get row_number in sequence in recursive CTEHow to get save result from EXECUTE from a dynamic SQL query in another table?How to get Schema name from uid column in dbo.sysobjects in sql server 2000?How to get SQL server IP ?How to get START DATE and END DATE from month number and YearHow to get string array in string variable in SQL SERVERHow to get tab delimited text file when Stored Procedure executes ?How to get the table name in the trigger definition without hard coding.How to get the anniversary calculation correct in SQL server 2008 r2 ?How to get the closest match stringsHow to get the database owner name in T-SQL scriptHow to get the date using GETDATE in an OPENQUERY?How to get the last 3 months data at any given point of time using T-SQL?how to get the last friday of a given dateHow to get the list of the invalid objects in the databaseHow to get the return code of sp_executesql?How to get the Row count of all tables from all Databases of a SQL Server?How to get the rowcount for rows inserted and updated in merge procedurehow to get the statement of each spid if it is still runningHow to get the Stored Procedure Name inside the Trigger?How to get the string before dot in SQL.How to get the Week Number of a Specific Date in SQL Server 2005how to get this into a table????How to get view definition in formatted t-sql?how to get which employee is working all project in sql serverHow to grant select on table-valued functions and execute on scalar-valued functions to a userHow to group records in parent child relationship in a table and sort them internallyhow to handle 53 rd week in sql serverHow to handle identity columns when importing data from Database (table) to anotherHow to handle ntext/text columns in an AFTER insert/update triggerHow to handle special characters while doing bcp from a sql server 2005 database tableHow to handle SQL code for Daylight Savings for MST Time zoneHow to handle XML string with Single Quotes as a parameter to SP dynamically?how to have a decimal in datediff?How to i set the first char of Name Column always to capital?How to identify if a date is in Daylight SavingHow to identify non UTF8 CHARACTERsHow to identify SQL Server Job Execution by Unique ID?How to identify which fields changed between records?How to identify/troubleshoot - Error SQL72014:.Net SqlClient Data Provider:Msg 1222, Level 16, state 56How to implement a batch process or job in SQL Server?How to implement OOP in sql serverHow to import photos and the file name into SQL server tableHow to improve Query performance on large table in MS SQL Server 2008 R2How to In Time and Out Time for the Employees whose Shifts are Day Switch?How to include a single quote in a sql queryHow to include custom comments in SQL view creation scriptHow to increment alphanumeric?How to insert a Hash value in a tableHow to insert 24:00:00 into a datetime field?How to insert a substring after every nth character of another string?How to insert data to Oracle table from SQL using linked server?How To Insert Into Table With Identity Over Linked ServerHow to insert into whole year dateHow to insert line breaks in a dynamic sql statement?How to insert more than 5 millions of records to SQL Database tableHow to insert rows in chunk size.How to INSERT SUM into another tablehow to insert to smalldatetime in sql-serverHow to insert values into multiple tables which is related with primary and foreign keysHow to join 2 tables with same columns but different valuesHow to join tables on different servers?How to kill a trigger stuck in an infinite loophow to kill an open xp_cmdshellhow to know if a column in a table has decimal valueshow to know if insertion is successful ?How to know if Stored Procedure was successfully executed, if no, how to retrieve error logsHow to know list of users who queried the db and what were the queries they fired?How to know the data size of my select queryhow to know the database name if i know the table namehow to know the last row of a cursorhow to know the size of a viewHow to load data from csv file into table in SQL Server Management Studio 2014?How to load sp_who2 results in to a temp table?How to load xml data into cursor for iterate to insert into tableHow to loop through columns in a table using cursor?how to make a condition statement when Count is = 0 in SQL ServerHow to make an update multiple columns using stored procedure at a time using dynamic sql?How to make FOREIGN KEY and allow to have 0 valuehow to make sure for not empty XML element?How to make the Phone number in a regex pattern??How To Make Unique Constraint Case Sensitive In SQL SERVER 2008?how to move table from one database to another databasehow to multiply against a negative value?How to name Excel tabs when export from SSRS 2008How to open a .trn file from SQL server from Lab.How to optimize left outer join and how to decide indexes on the left outer join query ? please provide example of it.How to optimize Update query for 10 Million Records in SQLhow to outer join 3 tablesHow to output/print in Triggershow to pad left and right in sql select statementHow to Parse an XML with Multiple Nodes and AttributesHow to parse SOAP XML in SQL Server and show as table dataHow to Partition Table by Uniqueidentifier column SQL Server 2005How to Pass a filename as variable in OPENROWSET(BULK filename)How to pass a list of IDs to a stored procedure ?How to pass array of strings as an input to a functionHow to pass database name to the query dynamicallyHow to pass Datetime value to a tsql stored ProcedureHow to pass main query parameter to subqueryHow to pass multiple -Variable from powershell invoke-sqlcmd to a tsql script ?How to pass multiple string values to a stored procedure which accepts a string parameter?how to pass Multipul integer values to a single parameter in a stored procedureHow to perform cascading inserts?How to perform SQL Server health checkHow to populate a table with datesHow to prevent "Invalid column name" error for not existing column in SELECT?How to prevent duplicate data insertion with difference of millisecondsHow to prevent duplicate rows inserted by SP called simultaneously by different SPIDs (without unique constraint on table)How to produce the effect of a date range inner join without actually doing oneHow to Query Multiple Columns for Null, Empty, and 0 ValuesHow to query multiple values in a single SET statement?How to Quickly Delete Millions of Rowshow to Raise a Error in Case Statement...?How to re-order the ID column of a table?How to read foldername from shared location in sql serverHow to read JSON from https source?how to read the value of image data type to plain text??how to read varbinary data type using sql serverHow to read XML parameter data and move to Temp table?how to reconstruct a .jpg file from the image dataHow to recover the deleted stored procedure?How to reduce Scan count and Logical reads for QueryHow to reference a linked server in codeHow to remove a Primary Key you don't know?How to remove box character in SQLhow to remove comma fro sql stringHow to remove Hash JoinHow to remove milliseconds from datet timeHow to remove Namespaces from XML tags when using FOR XML option WITH XMLNAMESPACESHow to Remove Nested LoopHow to remove NULL in columnhow to remove numbers in the given stringHOW TO REMOVE SPACE FROM MIDDLE OF STRING ?how to remove special characters in a particular columnHow to remove Table Spool(Eager Spool) from query plan of a functionHow to remove those columns with all NULL values?How to remove XML tags from query result?How to repeat rows based on column valueHow to replace ' by null value in sql server 2008how to replace 'Like' operatorHow to replace (null) values with 0 output in PIVOThow to replace a character in SSMShow to replace blank or space with NULL values in a fieldHow to replace first occurrence of word in TSQL?How to replace ID with name in the queryHow to replace In with ExistsHow to replace NULL with 0 in SELECT StatementHow to replace placeholders in a string from a table or listHow to replace the Nulls values in OUTER JOINS with already existing valuesHow to resolve "Unmatched Indexes" warning.How to resolve the Creating an instance of the COM component with CLSID {AA40D1D6-CAEF-4A56-B9BB-D0D3DC976BA2} from the IClassFactory failed due to the following error: c001f011. (Microsoft.SqlServer.ManagedDTS)",How to retreive only columns which having at least one not null value in any row.How to retrieve a value from EXEC a statement (EXECUTE (@Query) in a stored Procedure?How to retrieve current step name of currently running jobHow to retrieve last inserted row/ record from a table in sql server 2008How to return multiple values from case statement, SQL 2005How to return object names from sys.dm_tran_locks?How to return table name on a select *How to reuse subquery ?How to run a large script from sqlcmd and continue despite errorsHow to run a store procedure as background Job ?How to run a stored procedure located in one database against another databaseHow to run exe file using xp_cmdshellHow to run sql query in bat file in task schedular at every 10 secondsHow to save special characters and symbols to DatabaseHow to Script Out the User Mappings for the Logins\Users?how to search for Spelling errors with the use of the language dictionary and show The row containing the error ؟How to see Average CPU utilization by T-SQLhow to see the sql running on a spid (isnt it sql_handle?)How to SELECT * into a SQL table incremntally by date?How to select 2nd row from the table?How to select all columns except one column from a table ?How to select all fields from a table and only one field from another table with an inner join?how to select into local variable AND retrieve data?How to select last N columnshow to select last two words from a string...How to select only numeric values from a column if it has both numeric and varcharhow to select range of columns SQLHow to select result from a OPENQUERY into a variableHow to select rows that contain substrings from another tableHow to Select Tables Using 'LIKE'how to select the 2nd word in a string?How to select the nth word in a string?How to select top 1 from union?how to select top 1 record per groupHow to Send a Message from Stored Procedure to the applicationHow to Send PDF file as an attachment with sp_send_dbmail?How to send SQL select output to a txt/csv fileHow to set a variable in an if exists statementHow to SET a variable in CASE statement..How to set auto delete function in SQL Server ?How to set Identity_Insert in dynamic sql?How to set SQL Server Login MUST_CHANGE, CHECK_POLICY, CHECK_EXPIRATION all to OFF with T-SQLHow to set the default query for the SSMS 'New Query' button?how to show columns with two decimal placeshow to show only even or odd rows in sql server 2008 ?how to show your total at the bottom?How to skip rows in excel file with OPENROWSETHow to solve buffer latches problemHow to solve Hint 'noexpand' on object <Table>"How to solve this error : The conversion of a nvarchar data type to a datetime data type resulted in an out-of-range value.How to solve TOP clause contains an invalid valueHow to solve Trigger failure with transaction (error 3609)How to specify decimal size in C# code?how to speed retrieving data from big table data when select from it?how to speed up execution time of a stored procedure ?How to speed up shrinking the mdf file.How to split a large transaction?How to Split Address into Multiple Columns in SQLHow to split comma delimited string?How to split month in to weekshow to split One column into multiple column through SQL Queryhow to split quarters data into months in sql serverHow to split string based on either space or tab delimitation?How to stop execution of stored procedure if error occurs in try/catch blockhow to store a value of SUM in the variable to use it in a SELECT clauseHow to store Large Amount of Text Data(20000 Charector) in Sql Server?How to store the result of Exec command into a temp table ?How to subtract two values from same table but different columns?How to Sum a data with outer Apply ?How to Sum a varchar(20) Column?How to sum all the count ?How to sum bit values of a column in a group by (aggregrate function for and)How to switch database inside stored procedureHow to take sum of column with same id in sql?How to test if User has permissionsHow to tokenize a column data of a table in sql?How to trace a trigger using SQL Profiler?How to tranfer a column with TimeStamp datatypeHow to troubleshoot performance issues due to FETCH API_CURSOR ?How to truncate extra decimal places?How to update a query when subquery returned more than 1 valuehow to update decimal values in sql server?How to update foreign key...how to update multiple columns of a record using subquery ? plz guideHow to update only month part of a datetimeHow to Update only the year (yyyy) in the datetime data type using SQL Query?How to update previously NULL columns using MERGE statementHow to update remote table using openqueryhow to update sql table by passing datatable to stored procedurehow to update table rows with random number values?How to update the date when value in the column ChangesHow to update varbinary (max) columnHow to use " Use Database " inside stored procedure.How to use "WITH RESULT SETS" clause in SQL 2012 for dynamic column names.How to use a CTE in a CASE statement?How to use a variable as a tablename in INSERT INTO statementhow to use case statement in Split functionHow to use comma separated value list in the where clause?How to use conditional union?How to Use CTE function in Where Clause or Where In ClauseHow to use EXEC with UNION Operator.How to use execute a procedure with TRUNCATE statement without db-owner right in sql server 2000?How to use GROUP by When Creating View in TSQL 2008How to use If condition in JoinsHow to use if else condition in case statement using sql server 2008?how to use IF statement in subqueryhow to use IF-THEN-ELSE in a inline table-valued functionhow to use iif in sql server 2008?How to use like operator in dynamic query?How to use LIKE operator with Varible in Stored ProcedureHow to use local variable in a group by clauseHow to use local variables in a View?How to use max(Datetime) in where clauseHow to Use Min(date) in case statement)How To Use More Than 10 Case StatementsHow to use multiple 'not like' in a query?How to use openquery for UTF-8 characterhow to use order by in pivot table ?how to use parameter value as a column nameHow to use Regular Expression in SQL AzureHow to Use Sequence Object Inside User-defined Function In SQL ServerHow to use SQL Hints within CTE/subqueryHow to use switch statement in Stored procedure in sql server 2005How to use temporary table in WHERE clause?how to use use coalesce with 0How to use WITH (NOLOCK) command when querying remote sql server without having linked serverhow to use xp_cmdshell to write to text fileHow to validate SQL Login Credientials - Userid and Password using tsqlHow to validate three digits before decimal and after decimal point six digits in SQL ServerHow to verify execute permission on stored procedure using queryHow to verify Valid Social Security NumbersHow to wait for event to finish execution?How to work out the difference of two numbers in SQL table.How to write a sql query to remove non-printable characters in a column but keeping the carriage return?How to write a trigger to update uniqueidentifier field?How to write EXEC in select statementHow to write If-Else Condition inside cursorHow to write query to access multiple databases.How to write SQL Delete script with Row_numberHow to write SQL Query and running in parallel within stored procedure ?how to write string lines to a text file from a T-SQL script?How to: 1) Insert a range of values into a table with a single identity column 2) Rank the results without using any functionsHow To: Save a string with more than 255 characters?How use "Description" as a column namehow we can see existing table definitionHOW-TO Change "text" column to "ntext" that is NOT NULLHow-To Copy SQL Agent Jobs between servers with script.HTML Code Inside SQLHTML formatting using TSQLHTTP POST WITH FORM DATAi am getting error as An explicit value for the identity column in table 'product' can only be specified when a column list is used and IDENTITY_INSERT is ON.I can add 1 to Charindex() function, but I can't minus 1i hav 10 tables how many join conditions are possibleI have columns in my database that are zero length but not nullI keep getting this error: Msg 142, Level 15, State 2, Line 0 Incorrect syntax for definition of the 'TABLE' constraintI need a ZEROFILL in SQL SERVER 2005!!I need help understanding the difference between cursors and set based queryingI need to filter out non-latin characters. For example, thai and chinese.I need to null the numeric and decimal fields in a table (SQL 2008)I need to pull only text from the RTF data of a column in a tableI need to select only value which starts with number using sql queryI ran dbcc checkdb on one testdatabase ,getting following errors, how to fix it?I Want to create a table variable from another TABLEI want to highlight the rows having Invalid status using SQL HTMLI want to raiserror within a functionICD-10 Code Ranges for DiagnosesIdentify and Stop stored proc from runningidentify which query or stored procedure is causing locksIdentity auto-increment column per/based another columnidentity column in union queryIDENTITY_INSERT in transaction?IDENTITY_INSERT not workingIF condition JOIN this or thisIF ELSE and TEMP TABLESIf Error do nothing ELSE process the queryIF EXISTS .......Incorrect syntax near ')'.if exists ..drop table on linked server.IF Exists Then Drop JobIf I stop a Microsoft SQL query before completion could any rows be affected?IF NOT EXIST and IF EXISTS questionIF NOT EXISTS and CREATE SCHEMAif nvarchar(50) actual size is 100 then what should i state in .NET SQL Paramerer variable?IF STATEMENT WITH A CASE STATEMENT WITHIN A SQL SELECTif there's any errors stop running the remaining of the script possible?IFNULL replacement functionIgnore error row when update or insert ms sql serverignore first row of data file in bulk insertIgnore milliseconds on SELECT query?ignore null valued in unionIgnore primary key violation when inserting to tableImplicit conversion from data type nvarchar to varbinary is not allowed. Use the CONVERT function to run this query.Implicit Conversion from data type sql_variant to datetime is not allowed.Implicit conversion from data type sql_variant to varchar is not allowed. Use the CONVERT function to run this query.Implicit conversion from data type varbinary to datetime2 is not allowedImplicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this queryImplicit conversion from datetime to float not allowedImplicit conversion of varchar value to varchar cannot be performed because the collation of the value is unresolved due to a collation conflict.Implimenting SCD type 2 without Mergeimport csv file using stored procedureImport only first row from CSV fileImport Tab Delimited fileImport xlsb and xlsx files into SQL Server 2005 table using Import task.Import/Export of CSV files takes default varchar data typesimporting parquet file in SQL ServerImprove performance of insert query using linked serverIN clause extremely slowIn Clause in Stored ProcedureIN CLAUSE not workingIn SQL can we pass optional parameter to the functionIn T-SQL, Want to replace , (Comma) with ',' (Single quote & Comma). It is throwing ErrorIn WHICH year where the MOST NUMBER of programmer born?IN,EXISTS or INNER JOIN - which one is the best (performance wise)Include NULL values in GROUP BY selectionInclude table name in column header?Incorrect date format being used on SQL Server databaseIncorrect Syntax error when using #temp tableIncorrect syntax near ','Incorrect Syntax near '|'Incorrect syntax near 'DISTRIBUTION'. Unable to use the word DISTRTIBUTION in TRANSACT_SQLIncorrect syntax near 'END'Incorrect syntax near 'GO' in dynamic SQLIncorrect Syntax near 'in'. Expecting ID error messageincorrect syntax near microsoft sql server error 102Incorrect syntax near the keyword 'CROSS'.Incorrect syntax near the keyword 'DECLARE'.Incorrect syntax near the keyword 'DROP'.Incorrect syntax near the keyword 'ELSE'.Incorrect syntax near the keyword 'EXEC'Incorrect syntax near the keyword 'FROM'Incorrect syntax near the keyword 'identity'.Incorrect syntax near the keyword 'IF'. please HelpIncorrect syntax near the keyword 'PROCEDURE'Incorrect Syntax near the Keyword 'RETURN'Incorrect syntax near the keyword 'SELECT'Incorrect syntax near the keyword 'SET'.Incorrect syntax near the keyword 'WHILE'.Incorrect Syntax near the keyword CONVERT when the syntax is correct - Why?incorrect syntax near try, expecting conversationIncorrect Syntax: Create Procedure must be the only statement in the batchIncreasing timeout in a stored procedureIncrement value using Cursor or Update statementIncrementing numbers based on previous record valuesIndex hint in delete statement?index or multiply columns PK in table-valued function?Index usage in Linked server queriesIndexed View with Union operator between my tablesindexes lost in common table expressions??INFORMATION_SCHEMA.Columns vs. sys.columnsINNER JOIN After LEFT OUTER JOININNER JOIN from an OPENQUERYInner join not working OR I am a stupidINNER JOIN or LEFT JOIN using CASE expression valueINNER JOIN through View extremely slowInner Join with a SELECT Statement and outside WHERE clause throws unexpected errorInner Join with a table VariableInner join with different type dataInner join with table brought from stored procedureInner Join without Foreign keyInner joins using case or if-else statementINNER LOOP JOININSERT ... SELECT should I always use WITH (TABLOCK) and how can i verify if minimal logging was performed?Insert "dummy" record into each groupInsert 100 million records from one table to another in batchesInsert a count(*) into a temp tableInsert a new record into a table that has a primary keyInsert a PDF file into a table with SQLInsert and Update at the same timeInsert data in parent and child table (one row in parent table and multiple rows in child table)Insert data to Parent and Child tableinsert data to table from batch file?Insert Empty row depending on group dataINSERT EXEC failed because the stored procedure altered the schema of the target table.INSERT EXEC Statement cannot be nestedINSERT failed because the following SET options have incorrect settings: 'ARITHABORT'INSERT failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER'Insert Hexstring Values into table of binary datatypeInsert huge data from one table to another table in batchesInsert images into image datatype using SQLINSERT INTO as SELECT with ORDER BYinsert into does not insert in order?INSERT INTO in batchesInsert into table from another stored procedure does not work when stored procedure has timestamp columninsert into table one or Multiple result sets from stored procedureINSERT INTO table using dynamic sqlInsert Into Table Variable Slowinsert into temporary table by splitting string in sqlINSERT INTO using SELECT with OUTPUT INTO - multi-part identifier could not be boundinsert into varchar(max) truncation issueInsert Into Where Not Existsinsert into with cast datetimeInsert into with dynamic SQL and Cursor for variable table/columns according to update listinsert millions of recordsinsert more than 1000 rowsinsert mulitple comma seperated values in a temp tableInsert null instead of empty stringInsert on Not exist triggerinsert only time in sql server databaseInsert Query not inserting new record at the end of table.Insert row into a table with a date in dd/mm/yyyy formatInsert row only if table is emptyINSERT Same record 1000 timesINSERT script to allow ampersands and apostrophesInsert SQL Stmt with datetime conversionINSERT statement conflicted with COLUMN FOREIGN KEY SAME TABLE constraintInsert turkish character problemInsert Word document file into SQL Server tableINSERT...SELECT command with a timestamp columnInserting .png file as VARBINARY (no c#)Inserting a large amount of data in SQL tableInserting an Image using OPENROWSETinserting data into another table using OPENQUERYInserting default value instead of nullInserting million of rows with help of while loopInserting multiple rows from Comma separated list in a variableInserting rows into remote server with identity columnInserting to column of type "time". Getting error "Parameter Validation Failed, Invalid time error"inserting unicode text into varchar column ?Inserting varbinary into a tableInserts only if not exists in the highly concurrent system.Instead Of Insert Trigger check 2 table before insertinstrrev function in T-SQLInsufficient result space to convert uniqueidentifier value to charInteger to Hex & Hex to StringIntermittent "Unable to complete login process due to delay in opening server connection."Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer Support Services.Invalid column nameInvalid column name after Adding New ColumnInvalid column name although the column exists in SQL 2008Invalid Column name error coming up when trying to delete a rowInvalid column name for GROUP BY...Invalid Format Specification: '%'invalid in the HAVING clause because it is not contained in either an aggregate function or the GROUP BY clause questionInvalid length parameter passed to the LEFT or SUBSTRING functionInvalid object name '##Temp_Data_Final'Invalid object name '#TmpTable' whenselecting from temporary table made using INTO from exec(@str)Invalid object name 'INFORMATION_SCHEMA.tables'Invalid use of a side-effecting operator 'INSERT EXEC' within a functionInvalid use of a side-effecting operator 'newid' within a functionInvoke-Sqlcmd : Incorrect syntax near ','.Is "select * into Table from exec Stored_Procedure" really working?is a BEGIN TRAN / COMMIT usefull without ROLLBACK?Is index on uniqueidentifier useful?Is it necessary to clean up (drop) temporary tables in stored procedures?Is it possible to allow NULL values in foreign key?Is it possible to create table variable by copying structure of existing table?Is it possible to declare a temp table with all columns and with one identity column.Is it possible to force the query to use parallelism?Is it possible to format date without leading zeros?Is it possible to have a stored procedure with optional user-defined table type parameters?Is it possible to pass TABLE as the output parameter in stored procedureIs it possible to select columns conditionally in the SELECT clause of a T-SQL query?Is it Possible to Use dense_Rank and Where Clauses Regarding dense_Rank in One Statement?Is it Possible to use XMLNAMESPACES and a CTE at the Same Time?Is not a recognized cursor optionIs SQL SERVER database can allow a NON-UNIQUE PRIMARY KEY.is the word "description" a reserved word in sql server?Is there a basic function for calculating a trend in SQL 2000?Is there a built in unique identifier for records in an SQL Server table?Is there a fast(er) way to retrieve a MAX(value) from myHugeTable Where something = x ? (sql server 2005)Is there a function like SUBSTRING but for integers?Is There a Keyword or Function Opposite of TOP? How Do I get Various LOWEST/BOTTOM Values?Is there a reason for these WITH NOCHECK / CHECK CONSTRAINTIs there a SQL Server 2005 equivalant function to excel's function MROUND?Is there a way of adding bold font in T-SQL?Is there a way to convert varchar to decimalIs there a way to determine stored procedure complexity?Is there a way to insert the output of 'RESTORE HEADERONLY' or 'RESTORE FILELISTONLY' to a table?Is there a way to use a conditional where clauseIs there a way to use aliases in a calculation?Is there a work-around to create indexes for a view defined by a sub-query, derived table, or CTE?Is there anyway to rollback single T-SQL in SQL Server Management Studio?Is there anyway to see the content in a temp table while debuging a stored procedure in VS.NETIs there way to get last updated column name/id in sql server ?Is Truncate a DDL command or DML command?Is UNION ALL a costly query?Is WITH (HOLDLOCK) still needed for using MERGE as an upsertISNULL not working???ISNULL(DISTINCT...isnumeric/isdate in a case statement doesnt do what i thought it wouldIssue When Converting sql_variant to nvarchar (Msg 257, Level 16, State 3, Line 16)Issue when use for xml path and HTML tagIssue with xp_instance_regreadIt is possible to alter multiple columns within a single alter table statement?Iterate stored procedure for each row of CTE outputIterate through all databases in my instanceIterate through table valued parameter and update the table having same id in table and table valued parameterIterating over the inserted table of an insert triggerIterating through a group.Its maximum row size exceeds the allowed maximum of 8060 bytes. INSERT or UPDATE to this table will fail if the resulting row exceeds the size limit.Japanese Character Bulk InsertJob fails from warnings? Null value is eliminated by an aggregateJob problem : The process could not be created for step 1 ...Join between view and tableJOIN ON varchar VS join on intJoin Tables on Condition if the parameter is not nullJoin Two table and create an insert store procedureJoin Two Tables on Closest DateJoining on columns with float data typesJoining to an excel spreadsheet?Joining two subqueries or joining a query with a subqueryJSON_MODIFY reference path from declared varible as array indexJulian Date in SQL StatementJulian Date to Date(time) ConversionKeeps asking for rpt file when executing store procedureKill all connections with SET SINGLE_USER for different DBkill just connections to a table instead of database ?Kill process error: only user processes can be killedKill with status only shows 'Estimated rollback completion: 0%. Estimated time remaining: 0 seconds'KILLED/ROLLBACK sessionLAG & LEAD functions... Any Way to Retrieve the 1st non-NULL Values?Lag and Lead not recognizedLarge Dynamic SQL Statement being truncated.Large Table - Move to different Filegroup - Best and Fast wayLast Login Date/Time of All SQL Server Logins From sys.server_principalsLast Modified date of the databaseLCK M SCH S lock waiting timeldf size bigger than mdfLeft Join - only first 'match' ...Left join Eliminating NULL valuesleft join on linked serverLEFT OUTER JOIN behaving like INNER JOINLEFT OUTER JOIN without a JOIN conditionlength of nvarchar column in system tablesLIKE '% [a-z]%'LIKE '%[^0-9]%' behaviourLIKE NULL + '%' ?LIKE operator not working!Like operator with IntegersLIKE query on varchar(max) or nvarchar(max) columnsLike vs. CharIndexLimit to number of INSERT statements or VALUES clausesLimiting a column to alpha-numeric valuesLine Break in ConcatenationLine break or Carriage return in a Delimited Field in SqlLinked Server Authentication Error - [SQLSTATE 42000] (Error 7303)linked server errorLinked Server Errorlinked server exec stored procdure results in Transaction context in use by another session.Linked Server Giving an Error Message: The OLE DB provider "SQLNCLI11" for linked server "LinkedServerName" reported an error. Execution terminated by the provider because a resource limit was reached.Linked Server Performance vs Open QueryLinked server permissions errorLinked Server to comma delimted Text FilesLinked Servers OPENQUERY error "Deferred prepare could not be completed"List all filegroups for all databases ?List all weeks StartDate, EndDates of given month and year (2014-01-01)List of integers as single parameter in Stored procedureList tables and column names a stored procedure is queryinglocalhost sql server installationLock request timeout period exceeded error when expand table list in SSMS 2008 R2log files doesn't clear after full backupLogging messages even if transaction is rolled backlogin as windows authentication using sqlcmdLooking for a Guid() pattern in TSQLLoop through parameters inside Stored ProcedureLoop through Query Results and Send Dynamic Content mail from DB MailLoop through string value t-sqlloop through temp tableloop through the folder and load all the files into a sql tableLooping Cursor through columns of a RowLooping through column names and make alias names using CURSORLooping through month in a range of dates?Looping through SELECT statement results to assign to variablelosing digits when divide two values with decimal data typeLTRIM and RTRIM does not remove spaces.making sql server database read -write from read onlyMaking the INSERT script Re-runnablemany ways to calculate the first day of the year in T-SQLmaster.sys.xp_DirTreeMax number of elements allowed in an IN clause.max value for int identity columnMax Value from Zero (Positive or Negative) Helpmax value on IDENTITYMAX(Date) from Multiple TablesMaximum impersonation nesting level exceededmaximum length of a sql statementMaximum Number of Index per Table & Max No Of Columns in Non-Cluster Index in SQL Server 2005/2008/2012?Maximum Parameters in Where ClauseMaximum Row should return in Join condition Right,Left and InnerMeaning of "Grant Alter to <User>" ?Merge error handlingMERGE for Remote TableMerge for soft delete - DatawarehouseMERGE ON 1=0Merge overlapping date ranges, keep adjacent in tactMerge statement conflict with FKMerge Statement Taking Long TimeMERGE statement throws Violation of PRIMARY KEY constraint ''. Cannot insert duplicate key in object '' exception in SQL Server 2008merge the output of two stored proceduresMicrosoft SQL Server Error 5170 when creating tableMigrate an execution plan from one sql server instance to anotherMigrate BLOB from text data type to Varbinary(max)Millisecond resolution in DATETIME comparisonmin(rank) and max(rank) over partitioned Row_NumberMinutes between two dates excluding holiday's and outside work hoursMissing Headers - Exporting SQL query result set to Excel fileMissing statisticmm/yyyy format sortingModify Computed Columns Using T-SQLModify the COMPUTED COLUMN to PERSISTEDMonth & Year as parameter in SQL query?More columns name than defined...?! Problem in a view...Most efficient way: Checking for an invalid character in a database fieldMove Data from Temp TAble to Flat Filemove files from one location to another using xp_cmdshellMsg 102, Level 15, State 1, Line 1, Incorrect syntax near ','.Msg 102, Level 15, State 1, Line 2 Incorrect syntax near 'MODIFY'Msg 105, Level 15, State 1Msg 110, There are fewer columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columnMsg 15135, Procedure sp_addextendedproperty, Object is invalid. Extended properties are not permitted onMsg 153, Level 15, State 1, Line 4 Invalid usage of the option filename in the CREATE/ALTER DATABASE statement.Msg 156, Level 15, State 1, Line 4 Incorrect syntax near the keyword 'VIEW'.Msg 208, Level 16, State 6, Procedure VB_SW_updates, Line 113. Invalid object nameMsg 242, Level 16, State 3, Line 2 The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range valueMSG 3154 The backup set holds a backup of a database other than the existing database.Msg 3609, Level 16, State 1, Line 1 The transaction ended in the trigger. The batch has been aborted.Msg 3616 Transaction doomed, Triggers and Error loggingMsg 4145, Level 15, State 1, Line 1 An expression of non-boolean type specified in a context where a condition is expected, near 'Name'.Msg 468, Level 16, State 9, Procedure "procedurename", Line 129 Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.Msg 512, Level 16, State 1, Line 1 Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.Msg 7399 and Msg 7303 - Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)"Msg 7601, Level 16, State 2, Line 1 Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'content' because it is not full-text indexed.Msg 8115, Level 16, State 2, Line 1 Arithmetic overflow error converting expression to data type datetime.Msg 8115, Level 16, State 2, Line 1 Arithmetic overflow error converting expression to data type int.Msg 8120, Level 16, State 1, Line 20Msg 8120, Level 16, State 1, Line 7: Aggregate Function or Group By ErrorMsg 8631 Internal error: Server stack limit has been reached on SQL Server 2012 from T-SQL script that runs on SQL Server 2008 R2Msg 911, Level 16, State 1, Line 1 Database 'databasename' does not exist. Make sure that the name is entered correctly.Msg, Level, State, LineMulti UNPIVOTMulti-threading options in SQL for stored procedureMultiple columns are specified in an aggregated expression containing an outer reference...Multiple Cross ApplyMultiple date parameters in WHERE clausemultiple if conditionsMultiple LIKE statements in one WHERE Clause (was:LIKE)Multiple Select statements in Single Stored ProcedureMultiple select with single CTEMultiple SELECTs into a temp table not workingMultiple sp_rename in Transact-SQL Script won't workMultiple String Comparison using LIKE and INMultiple Tables with a CURSORmultiple transactions on the same table ?Multiple update statements within a Merge StatementMust declare the scalar variable "@StartDate"mysterious results using NULLS and UNION statements.Naming a Sub Querynaming conventions for constraintsneed a function to split parameter in ssrs report.NEED ALTER TABLE ALTER COLUMN FOR DATE FORMATneed decimal data after divisionNeed help inserting multiple records and grabbing their scope_identity for another insertNEED Help SQL Use CASE and a JOIN Statementneed help with case statements with overlapping rulesNeed help with running javascript in stored procedure within the html bodyNeed help with trigger for looping through multiple values from insertedNeed help! Issue getting TempDB files removedNeed powershell script to run sql query import result to Excelneed string part after second hyphen?Need table count, index count, views count, procedures count for all databasesNeed to Capitalize the First Letter ONLY, and leave the rest lower case. Help please.Need to combine month and year to get date YYYY-MM-DD formatNeed to convert a NVARCHAR YYYYMMDDHHMM string to SQL Server DATETIME -3dNeed to find an ip address pattern in a columnNeed to generate update queries from existing tableneed to get the date culture info of DATETIME columnNeed to know the table creation dateNeed to read Binary Data as Little Endian instead of Big EndianNeed to select column with line breaks as separate recordsNeed to use dynamic column names in select statement of any tablesneed to write reverse to coalesce functionNeed week Number for 'x' month starting week on MondayNegative VARCHAR to negative NUMERIC SQL ServerNESTED IFNESTED IF ELSE SQL STORED procedureNested select order byNested Stored Procedures Try/Catch Error HandlingNET_ADDRESS in the master.dbo.sysprocesses tableNew Line and Carriage return lost when string variable is passed to Stored procedureNew Line Character IN SQLNew line is not working in Sql QueryNewbie to SQL: How to group Varchar columns like with GROUP BYNo column name was specified for column 2 of 'cte1'.No duplicates exist but get Msg 2627, Cannot insert duplicate key in objectNo logging in sql serverNo way to: SELECT * FROM MY_TABLE ORDER BY PRIMARY KEY??NOLOCK and COUNT(*)NOLOCK or WITH(NOLOCK) SQL SEVER 2012Non Ansi style Left Outer Joinnon breaking space charactersNon-Unique indexNone of the result expressions in a CASE specification can be NULLNormalize data in Excel Spreadsheet and create SQL tables.NORMSDIST equivalent in T-SQL?Not able to drop Unique Non Clustered IndexNot able to insert special character like 'ł', 'ş' in SQL SERVER.NOT Exists with Select 1 - Confusing!!!NOT IN filter in SQL behaviour based on data typeNot IN with multiple columnsNULL recognized as int?Null value in bit field.Null value is eliminated by an aggregate or other SETNull value is not accepting when use HashbytesNULL Values in Foreign Keys? Best PracticeNumbers Increment inside a CTENumeric (19,5) increase precision to 7 decimal placesNumeric vs int and bigintNVARCHAR (MAX) TO PRINT DYNAMIC SQL QUERY TO A SQL FILENvarchar of length -1. what does this signify ?NVarchar(max)NVARCHAR(MAX) return type value in User defined function truncatednvarchar(max) still being truncatednvl in sqlserverOBJECT_ID for a PK or IndexOBJECT_ID('tempdb..#foo')objectlock lockPartition=0 - does that mean lock partitioning is turned on?Obtain table output table variable in a dynamic tsqlOFFSET FETCH is not working in SQL Sever 2012OFFSET FETCH NOT WORKINGOLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" returned message "Unspecified error".OLE DB provider "SQLNCLI11" for linked server "192.168.0.7" returned message "The partner transaction manager has disabled its support for remote/network transactions.".OLE DB provider "SQLNCLI11" for linked server "Deferred prepare could not be completed."On OPENQUERY Usage with LOCAL ServerOn SQL_Latin1_General_CP1_CI_AS SQL Server 2008 Default CollationOne trigger for all tablesOne-part name VS two-part nameOnly functions and extended stored procedures can be executed from within a function.Open Query VS Exec atOPENJSON returning NULLOPENQUERY and Active Directory problemopenquery concatenationOPENQUERY Error when calling usp - object has no columns or the current user does not have permissionsOpenQuery in a FUNCTIONOpenQuery Limitation, Max 8000 characterOPENQUERY parameter length limitation of 8000 charactersopenquery update and optimistic concurrencyOpenquery Update with a parameterOPENQUERY with quotes in the query stringOpenrow set and dynamic queryOPENROWSET & Multiple filesOPENROWSET error MSDASQLOPENROWSET getting column namesopenrowset stored procedure passing parametersopenrowset using sql server authenticationOpenXML and Cross Apply Query Help !Operand data type bit is invalid for max operator ErrorOperand data type date is invalid for subtract operator.operand data type nvarchar is invalid for minus operatorOperand data type nvarchar is invalid for sum operatorOperand data type varchar is invalid for sum operatorOperand type clash: int is incompatible with dateOperand type clash: uniqueidentifier is incompatible with bigintOperand type clash: uniqueidentifier is incompatible with intOperating system error code 5(failed to retrieve text for this error. Reason: 15105)Operator used tempdb to spill data during execution with spill level 1Opposite of INNER JOINOptimize the query which use UNION ALLOptimizing a FULL OUTER JOINOptimizing a very slow "delete" instructionoptional parameters in dynamic sql queryOrder by (select 0) meaningOrder by A sort column can include an expression but the expression cannot resolve to a constant.ORDER BY and TOP or FOR XMLOrder By Causes Extremely slow performaceOrder by clause in Table-valued functions doesn't work as expectedOrder by datetime (datatype varchar)ORDER BY list of RANGE window frameOrder columns in dynamic pivotOrder of Execution of SQL Queriesorganization chart with recursive sqlOUTPUT Clause Syntax ErrorOutput File Cleanup reported: Unable to open Step output file.Output results to text file using T-SQLOutput SQL Server Agent job step to a fileOUTPUT variable from dynamic query with openqueryOver/Partition By - Multiple Partitioning's?Pad String to the Right with SpacesParameterized queries running much slower than ones with hardcoded valuesParameterized Views in SQL ServerParameters were not supplied for the function 'sys.dm_exec_sql_text'.Parition column for a unique index must be a subset of index keyPartition a table weekly on date column and create Clustered index on the Identity columnPartition by and where conditionPartition on UNIQUEIDENTIFIER Data TypePartition Scheme Error, Invalid Object.Partitioned View not updatable ???Pass a list to a sql function/procedurePass ColumnName in User Defined FunctionPass in multiple dates with variablePass Null Parameter to Dynamic SQL queryPass Parameter to Job which calls a SP with the Parameter provided?Pass parameters to ssis package through agent job.Passing a decimal to a stored procedurePassing a integer variable in a dynamic queryPassing a parameter to a CmdExec stepPassing a stored procedure parameter to an xp_cmdshell - sqlcmd linePassing a sub-query as a parameter to the Stored procedurePassing an array of GUIDs to a stored procedurepassing array of guids into stored procedurePassing Comma separated input to stored procedure in IN clausePassing cursor as a parameter to the stored procedure in SQL Serverpassing database name as sql parameterPassing DatePart variable to DateAdd()Passing input parameter with single quote in Stored ProcedurePassing JSON Data in Stored procedure parameterPassing null values to parametersPassing nulls and uniqueidentifier parameters to stored procedure from C#Passing the float value to stored procedurePassing variable in a path - SQL QueryPassing XML data from C# application to store procedure taking long timePast midnight datediffPATINDEX and Regular ExpressionPattern matching with multiple valuespercentage difference between two numbersPerformance difference between view and stored procedurePerformance efficient function to strip punctuation marksPerformance issue with ISNULL functionPerformance Issue with PivotPerformance of GROUP BY vs. PARTITION BYPerformance of SQL PIVOT Query Against Large TablesPerformance problem with date range JOINsPerformance: delete rows VS update rows statePermissions Enable Disable Trigger inside a store procedurePermissions needed to use xp_cmdshellpermissions to query sys.sql_expression_dependenciesPIVOT and get unique values rather than aggregatepivot error column specified multiple timesPivot grouping columns must be comparable.PIVOT Query Conversion For Varchar(40) to int or DecimalPivot query returns all NULLs?Pivot Query With String valuepivot string concatenationPivot table with no numeric aggregation?Pivot table: saving it after creation: insert into or select intoPIVOT versus UNION for de-flattening (normalizing?) some (but not other) columns of a flat tablePivot with unknown number of column in SQLPivot with using a SubqueryPivoting varchar columnsPlan Stability - KEEP PLAN vs KEEPFIXED PLANPLEASE HELP ME TO FETCH LAST 3Weeks data in SQLPlease help with Floating Point problem... An invalid floating point operation occurred.PMT Calculation with T-SQLPMT function in SQL Server using T-SQLpoor performance in using UNPIVOTPossible to declare a variable within a View?possible to do sp_executesql on table variablePossible to SELECT non-aggregate columns with SUM without GROUP BY?Possible to suppress (sub)procedure SELECT output?powershell invoke-sqlcmd with a long parameter fails with is too long. Maximum length is 128.PowerShell Script to Catch Empty Query ResultsPowershell Script to run T-sql files and capture messages from ssmsPREEMPTIVE_OLEDBOPS when I run my update query having linked server hence need help in framing the update queryPrefix alias for columns in select queryPreserve row order of a text file when inserting into a table using bulk insert (20160906)Preserve text formatting in sqlPrevent update in column if not Null (trigger)preventing table lock in insertPrevious year Year To Date with partial current year Year To Date Calculation SQL ServerPrimary key auto incrementing by 1000 instead of 1Primary key incremented even when insert fails.Primary Key on Calculated ColumnPrimary Keys - int's vs. varcharprint float valuePrint Hex value as string without 0xPRINT within WHILE loop is not being displayed...Problem : Cannot resolve the collation conflict between ...PROBLEM export SQL Server data to Text Files-utf 8 unicode--’…†‰€Problem in resizing the varchar columns inside a tableProblem printing @@ROWCOUNTproblem returning decimal value from stored procedureProblem saving column default value of NEWSEQUENTIALID()Problem to call sp_executesql inside functionProblem trying to rename db attached to the SSMS.problem while executing remote procedure with table-valuedProblem with Bulk Insert and Datetime FormatProblem with bulk insert from cvs using escape character '\;'Problem with converting float to varcharProblem with Linked ServerProblem with PATINDEX function for case-sensitive informationProblem with procedure, everything seems works but it does not update the fieldProblem with STORE PROCEDURE, There is already an object named, "GetCustomersPageWise" in the databaseProblem with Turkish 'i'Problems while executing OPENROWSET 'Microsoft.ACE.OLEDB.12.0'Problems with SP_TRACE_CREATEProcedure expects parameter '@parameters' of type 'ntext/nchar/nvarchar'Procedure expects parameter '@statement' of type 'ntext/nchar/nvarchar'."Produce DISTINCT values in STRING_AGGProgrammatically Write Results to CSVprogress bar in sqlProper Case Stringproper way to stop dbcc shrinkfile?Property text is not available for DefaultConstraint. This property nay not exist for this object, or may not be retrievable due to insufficient access rightspros and cons for WITH (NOLOCK).Pros and Cons of Snapshot Isolation levelPros and Cons of Temp Table Over CTE and Table Variable in Reoprt Developmentprovider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.Pull the Groups and Members from Active Directory (AD) Using T-SQLPut NOLOCK into VIEWQuerey to find connections on SQL Server and history of connectionsQueries from multiple databases on the same serverQuery a NVARCHAR(MAX) column in the SELECT statementQuery a Table with Japanese Characters returns always 0 resultsquery AD from sql using linked server-not returning all recordsQuery AD With No Linked Serverquery completed with errors ?Query error when run in SQLCMD modequery for checking if a last run of a job succeeded or failedQuery for Copying all objects from one schema to another schemaquery for enable CDC on all tables in SQL server ?Query for expired password for Active directory user account?Query for Historical Locks, Blocks, or DeadlocksQuery from SQL to AS400 0206 and 0420 errorsQuery need to Delete rows older than 2 monthsQuery performance unions vs temp tablesQuery Performance using OPENQUERY with LInked Server Joined to local tableQuery plan shows clustered index scan - need to add index? why did it not just do a table scan?Query processor could not produce a query planQuery processor could not produce a query plan because of the hints defined in this query. Resubmit the query without specifying any hints and without using SET FORCEPLAN.Query question with Substring by tilt character ('~')Query the registryQuery timeout expiredQuery to Check DatabaseMailUserRole Permission To A Loginquery to convert exponential to numberquery to convert percentage value to numberQuery to count ACTIVE records for each monthQuery to determine overlapping date ranges (by category)Query to dynmaically pass the last 36 months date to loopQuery to extract multiple words from a string(Varchar)Query to extract non english charactersQuery to find First sunday of march and Second Sunday of November in SQL 2008Query to find Last Business Day Previous Month Date KeyQuery to find long running transaction and high memory consumed processquery to find most frequently used objects (tables, indexes, etc)query to find the list of tables with clustered indexQuery to find the user mapping for a specific loginQuery to find unique record , those that are not duplicated even once.Query to get list of jobs running during specified timeQuery to get salary range count by DepartmentQuery to List All Logins (SQL Server login and Windows Login) and Last Password Change DateQuery to remove decimal from a number and introduce commas ??Query to select values from table 1 where column1, column2 is in Table2(col1, col2)querying a global temp table on another serverQuerying a linked server having a LIKE operatorQuerying for Database Names that Contain SpacesQuerying on a dynamic column name in a stored procedure - SQL Server 2005Question: IF statement in Scalar FunctionQuestions mark instead of dataQuick easy way to see if data in sql server has changedQuick key shortcut to apply commaQuick key shortcut to apply single quotes?RAISEERROR to stop executionRaiserror behavior in TRY-CATCH blockRank Over Partition - Ignoring null columns in the partitionRANK without counting null valuesRank() and using WHERE clause on resultsRe-name SQL Server Database Physical .mdf and .ldf filesRE: Query Output messages being displayed in Messages tab versus Results tabRead Excel file using TSQLRead file from Network DriveRead unicode character using OPENROWSETReading @@ROWCOUNT after a Merge statement execution - SQL Server 2016real story on join precedenceRebuild Index MaintenancePlan [SQLSTATE 01000] (Message 2528)Recent executed queries for a specific databaseRecord Count on MERGE Statement on Insert,Update,DeleteRecord creation date without a column for itRecover unsaved queries older than a monthRecovering a deleted view. How?Recursive CTE (In Reverse)Recursive CTE for Start and End date upto last 12 Months only using getdate() --2qsnsRecursive query without using CTEReference Created Column Name in Select StatementReferencing a case stement in another case statementRegEx in TSQL - replace non-alphanumeric characters etcRelationships AdventureWorks databaseRemote function reference ' is not allowed, and the column name 'hvme' could not be found or is ambiguous.Remote function reference is not allowedRemote table-valued function calls are not allowed.Remove ----,----,-------,---- from the csv fileRemove 0x from binary values using t-sqlRemove all characters before "\"Remove all leading ZerosRemove Blank Rows from SQL server TableRemove Characters from a DateRemove Comma from SQL StringRemove DATE from datetime SQL 2005remove double quotes on bulk insertRemove HTML tags from a field without using a functionRemove last Comma from the stringRemove Null or blank in STUFF sqlRemove seconds from datetimeremove space in columns on bcp outRemove Spaces in columns in sql tableRemove spaces in middle of a stringRemove Unicode characters from Sql Server Tableremoving a leading character from a comma separated listRemoving decimal placesRemoving hidden CRLF only from end of text stringRemoving seconds and milliseconds from datetimeremoving white space from a SQL database using query.Rename column with spaces in script (SQL Server 2016)rename multiple tables in databaseRenaming Pivot table column names dynamicallyReordering rows in a tableRepalce type Ntext is invalid for argument not workingRepeat row number for a group and increment row number when a specific column in the group changes.Repeat rows in a queryReplace cursor using CTE in SQL ServerReplace First three character T SQL QueryReplace hex A0 wih spaceReplace HOUR in DATETIME field.replace if more than 1 space between words in a stringReplace invalid XML characters using SQL queryReplace Invisible Specuial characters issue in functionReplace NULL with a Blank spaceREPLACE statement removing commas from a money convert... I do NOT want it to do thisReplacing numbers from a stringreplacing self closing tagReplacing XML Character in all the columns in a tableRequire Query to Retrive data of Count of Applied leaves by Month wise in Horizontal wayreseed identity to 1, identity is reset again to max current column value in couple secondreseeding temporary tables or table data types with identity columnReset RowNumber ONLY if previous value is changed in the group.resetting identity column value back to 1Resetting IDENTITY Seed in Table VariableRestore Database .ndf filesRestore database failed with the operating system error 2 (failed to retrieve text for this error. Reason: 15105)Restore Database from C# ApplicationRestore Database gives an error: Cannot open backup deviceRestricted data type attribute violationResults pane is disappearing in SQL Server 2008retain old value while update data in sqlRetrieve all the filename present in one particular location in SQLRetrieve GUID or SID FROM Active Directory via ADSI and T-SQL only?Retrieve last 12 months dataRetrieve month name and last 2 digit of yr from date columnRetrieve the next auto-increment numberRetrieving a 2 digit monthRetrieving MAC address from NET_ADDRESS in master.dbo.sysprocesses returns different values for the same computerReturn a datatable from stored procedure asp.netReturn all records in 15 min intervals.Return an Empty Value From a CASE StatementReturn NULL if no value is found on sql select statmentReturn NULL values with INNER JOIN for INDEXED VIEWSReturn only numeric characters from a string columnReturn Value from SQL Query if there is no dataReturnig BLOB(varchar(max), varbinary(max) ) from linked serverReturning multiple rows based on a date range in a single rowReturning 0 when no records exist in a sql queryRevert back of altered Stored Procedures or deleted recordsRight Justify Money Column With Query To Grid.Rollback Deleteround up or down to nearest dollarRounding Down Time to the 30 minutesRounding float issueRounding number with ending equals 5Rounding the time from (DATEDIFF(n,minPour,maxPour))Rounding Time to nearest Hour!!Row comparison using TSQLRow failed to retrieve on last operationRow terminator for BULK INSERTROW_NUMBER and LEFT JOINROW_NUMBER data typeROW_NUMBER for a computed columnrow_number vs max performance wiseRow_Number() And CTEROW_NUMBER() and MAX per PARTITION?Row_Number() decreasing the performance of the queryROW_NUMBER() How to Restart 'Counter' when same group is reached?row_number() is not working properlyROW_NUMBER() is very slow with a table that has a million recordsROW_NUMBER() OVER (ORDER BY ) is very slow with large datasetRowcount returns zeroRowset does not support fetching backward.Rowsize exceeds 8060 bytesRowVersion/Timestamp to stringRTRIM/LTRIM is not working on a set of dataRun An Analysis Services Command(xlma) in T-SQL stored procedureRun inline stored procedureRun Query in ALL DatabaseRun Same SQL on multiple tablesRun Store procedure in multi threadingRun Stored Procedure From TriggerRun Stored Procedure through Batch Files [CMD]Running multiple SQL script files as a single batchRunning multiple update statements parallel on a single tableRunning PL/SQL Syntax on Microsoft SQL Server 2008Same Query in same database/server taking different execution time for different persons - please help!Same query returns different resultSame Query, Different execution time on two environmentsSample query for a loop syntax to delete rows from multiple tables in a databaseSave output messages to text file?Save temp table to permanent tableSaving reports to csv with creation date in file namescale greater than precision - not a valid instance of data type realScan count VS logical ReadsSchedule Script to Run without Job Agentschema changes history by T-SQLSCOPE_IDENTITY() returns null after paramerized INSERTScript to simulate long running transactionScript failed for StoredProcedure '????'. (Microsoft.SqlServer.Smo)SCRIPT for Foreign Keys DROP and RE-CREATE for use with TRUNCATEscript out many stored procedures at once?Script to create TSQL2012 sample database from book "Training kit (70-461) Querying Microsoft SQL server 2012" by Itzia-ben-Ganscript to disable multiple sql logins except for server loginsScript to find the list of Queries currently running in database with User Login Name and Host Name.script to iterate to each databaseSearch a string accross multiple tablesSearching a whole database to find a single value in a unknown tableSearching partial and or full word from full-text search those might be precise or fuzzy (less precise) OR matching the meaning should return correct resultsSelect (and commit) 1000 rows at a time from/into a large temp tableSELECT * INTO #X FROM (SELECT * FROM TABLENAME)----AND ANOTHER NESTED SUBQUERY?Select * into From One Server to AnotherSELECT * to select only non empty columnsSELECT <values> FROM table WHERE specific column value = "active"Select 1/0 does not show error when put in ExistsSELECT all characters/words after a specific wordSelect All Rooms Available for Given Date RangeSelect and convert all fields into string typeSelect column by ordinal positionSelect column value for last 5 working daysSELECT DATEADD (MM, DATEDIFF(MM,-1, GETDATE()),0) -1 AS [LastDayOfMonth]Select datetime less then 10 minutes compare with nowSELECT DISTINCT - Ignore Specific ColumnsSELECT DISTINCT Max(Date)Select Distinct Month-Year Combinations?Select distinct with ntext fieldsSELECT failed because the following SET options have incorrect settinSelect from EXEC?SELECT FROM View Takes Too Longselect into casting not null questionselect into new table with today's date?select last digit in sqlserver and check it ?SELECT matching records from 2 tablesSelect MAX value Then add 1 to itSELECT MIN() does not select negative valueSELECT Month(getdate -1) -- in january -- do you get 12 ?Select multiple columns from table but Group By one columnselect only min and max rows for each group?SELECT only numeric part of stringSelect Query for 3rd decimal value graterthan zero.Select query returns 0 for calculating percentage using division operatorSelect query with Like matching exact word only?Select query with multiple row coalesce subquerySELECT query, 2 SUM functions with different conditionsSelect records from the last hourSelect records greater than or equal to current dateSelect Statement - just want the value, not the headerSELECT STRING AFTER A SPECIFIC CHARACTERSelect String after CharacterSELECT string between commaSelect the last value from a comma separated value string in SQLSelect the numbers between two numbersselect the record with the lowest datediff()SELECT TOP 1 in subquerySelect Top 10 Percent and 20 Percentselect top 100 to 200 records in sql serverSELECT TOP 50 with ORDER BY DESC Is much slower than writing it with ORDER BY ASCSelect values from temp tableSelect with FOR SYSTEM_TIME ALL clause from a Viewselecting a value of one column based on the max value of another in a subquerySelecting last 52 weeks of dataSelecting records 1000-2000 out of a sql databaseselecting records from one table excluding IDs from another tableSelecting the substring of a distinguished nameSelecting the timezone using the Zip code.Selecting Unique Combinations of multiple row valuesSemi-Colons in Stored ProceduresSend an email when the count is greater than 1Send HTML as attachment in email in Stored ProcedureSend records from multiple tables to email using sp_Send_dbmail in table format.Sending an image in E-mail as embedded imageSending mails to mutliple recipients in sql serverSending remote attachments using sp_send_dbmail as non-admin userSeperate First and Second word from string into columnsSequences and Merge-statementSequential Execution of Stored ProcedureSeriously performance issues on cross joinserver can t find SP sp_MSforeachDBserverproperty('ComputerNamePhysicalNetBIOS') equivalent in 2000Set a flag if certain columns contain a valueSet A SQL Server Field to A DropDown?Set a variable to current date/timeSet a variable using a CASE expression (inside a SELECT statement)Set datatype of column within SELECT INTO query?SET DATEFIRST to work for a viewSET DATEFORMAT within a stored procedureSet Default Value for DATETIME COLUMNSet Hours, Minute, Second and Millisecond Part to Zero in SQLSet identity_insert on for multiple tablesSet multiple variables to one sql statementSET options have incorrect settings: 'ANSI_NULLS, QUOTED_IDENTIFIER'Set priority on t-sql statementSet string value in where condition with variable using Dynamic SQLSet Table Collation Using SELECT INTOSet table column value as mandatoryset the result of execute() into a variable ?Setting a database to single user isn't always workingsetting current schema in SQL serverSetting date format for the entire SQL Server installation - SQL Server 2008 R2-2012Setting time to zero in a datetime objectSha256 Encryption possible in SQL?shell script file call to Sql server procedure/functionshift decimal left to 2 positions.should we specify collation while making #temp table.Show Field types of a CTEShow null value after using unpivotShow/Hide columns based on criteriaShrink Database while user accessing itShrinking a 4 tb DB with 2.8 tb free spaceSimilar to Initcap in SQL server T-SQLSimple "WHERE x IS NOT NULL" query takes foreverSimple query on a table just hangs ...simple stored procedure return null when data expectedsingle inverted comma insertion problemSkip duplicate keys when inserting rowsskip row if error occurs and move to next rowskipping header in bcpSkipping Rows and Columns With BULK INSERTSLA Calculation Help needed in Excluding Weekends and Off business hours for calculationSlow deleting from Temp Tableslow insert into temp tableSlow performance of sys.dm_db_index_physical_stats()Slow query after removing 50% of table dataSlowly changing dimension type 2 using T-SQL ( NOT MERGE)Some guidlines for posting questions...Some records not updated during UPDATE commandSOME/ANY vs EXISTSSort Order with Special CharactersSp help doubles the lenght of nchar and nvarchar...why?sp to send email with csvsp_add_job - adding jobs with TSQLSP_EXECUTESQL / @@ROWCOUNTsp_executesql extremely slowsp_HelpText ==> "There is no text for object"sp_helptext Equivalent for Tables?sp_helptext format issuesp_OACreate has not yet been called successfully for this command batch.sp_OAMethod - ADODB.Stream - Write to file failed.sp_OAMethod return/error code - unable to find out what it is!!sp_OAMethod Send FAILED!sp_rename - suppress warning messagesp_rename failure for renaming default constraintssp_send_dbmail - attachment folder permissionssp_send_dbmail - how to insert date into subject line of emailSP_SEND_DBMAIL errorsp_send_dbmail looses NEWLINE-ssp_send_dbmail return codes?sp_send_dbmail to include hyperlinksp_who2 does not return all connections in a contained databasesp_xp_cmdshell_proxy_account returns error code 5Special character ( < , > ) in XML Path (' ')Special permission on Db_datareader user for execute sp_helptextSpecify code page in a SQL QuerySplit data at particular character using t-sqlSplit date range into monthsSplit datetime records with 5 minute intervalsSplit IP address into four partsSplit name into first name last name and middle name(where exist)Split one stored procedure to two stored proceduresSplit row to multiple rows based on dates overlapping (SQL split dates)Split string (with variable number of value) into different columnsSQL - Implicit conversion from datatype 'VARCHAR' to 'INT' is not allowedSQL to split the string based on the space (Example -Split the first_name alone from the complete name , Name 'Pete Mahadevan Sankaran' should give result as 'Pete')SQL - Drop table if existsSQL - Group By with text?SQL : Date Query for Next yearSQL : How can we keep the trailing zeros while inserting into a table with varchar field.SQL : Query to Replace null with NEXT non-null valuesSQL : UPDATE failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER' error.SQL 2005 LDAP Query Error: Msg 7321, Level 16SQL 2008 R2: How to determine index create date?SQL 2008 Restore Encryption database - Create Certificate invalid private key errrorSQL 2014 - Update varbinary column to string valueSQL 2016 - PRIMARY KEY VIOLATION IN IDENTITY COLUMNSQL bulk insert a single row from a text fileSQL Bulk insertion errorSQL Case wih Multiple Return ValuesSQL Code to remove special charactersSQL Collation chnagesql convert vertical table to horizontal (deep to wide)sql converting julian date to calender dateSQL COUNT data by date, and then COUNT by date rangeSQL database export to CSV with automatedsql datetime difference between two columns decimalSQL Error - Column names in each table must be unique. Column name 'w' in table 'Table_1' is specified more than once.SQL ERROR : 7346SQL Error (Msg 6506, Level 16, State 10, Line 11 Could not find method 'STDISTANCE' for type 'Microsoft.SqlServer.Types.SqlGeography' in assembly 'Microsoft.SqlServer.Types')SQL Error Message: Executing SQL; no cursorSql Error:Operand type clash: date is incompatible with intSQL from another server underlined in red but works, can I remove the red underlines?SQL Function for calculating IP AddressSQL Function to read varbinary word doc file and generateSQL Fuzzy match (matching names not exact)sql incorrect syntax near '<'SQL Job failing with error [SQLSTATE 01000] Message ID 3621SQL Job Fails Because of Invalid Object NameSQL Job failure:Unable to determine if the owner (domain\user) of job ...SQL Join - Convert char to IntSQL Loop through multiple tablesSQL mail sp_send_dbmail include images from query into HTML table rowsSQL Merge - only update when specific column has changed?SQL Not Equal clause ignores NULL valueSQL parameter value inside of brackets issueSQL Pivot with Grand Total RowSQL Programming, check if multiple values exist in databaseSQL Queries for TFSsql query for last 15 minutes updated or inserted records in a tableSQL Query for estimate number of the transactions per daySQL Query for five-digit dataSQL Query for last week / previous week dataSQL QUERY FOR MAX SALES AND MIN SALES FOR EVERY YEAR WITH DATESQL query for Office First IN and Last OUT timing calculationSQL Query for Phone NumbersSQL Query How to Extract only text that has no Number associated with and Number with text or Text with NumberSql query issue while connverting from oracle to SQL syntaxsql query permutations without repetitionSQL Query throwing Warning: The join order has been enforced because a local join hint is used.SQL Query to add previous month amount to current month amountSQL query to convert date from DD/MM/YYYY to YYYY-MM-DDSql Query to count numbers of consecutive dates.SQL Query to create a Time Dimension at 15 mins granualitysql query to find decimalsql query to find exact matchesSQL QUERY TO FIND RECORDS BETWEEN AM AND PMSQL Query to find sheet names in a excel filesql query to find tables used in sql jobsSql Query to Find the Maximum occurance field on a columnSQL query to generate number with multiple of fixed numbersSQL query to get last 10 records in the table?Sql query to get next working daySQL query to get the Datetime 06 hours prior to the table Datetime valueSQL query to group and create custom columnsql query to Load only new records,or update old recordssql Query to replace the square bracket and the whole text inside with a single charecterSQL query to return the second word in a stringSQL query to sum values of previous rowssql query which will create a text file on my system to export table data from sql serverSQL Query With Cross Apply Slow performanceSQL Query without using where clauseSQL remove Invalid CharactersSQL replace bullet pointsSQL replace with a comma separated listSQL Says 23:59:59:999 = 00:00:00:000SQL Script to findout How much percentage databse restoration completed ??SQL SELECT * FROM OPENROWSET with VariableSQL select into variablessql select statement to find percentagesql server - delete query with unionSQL server - how to find Hexadecimal character in a tableSQL Server - Searching AD. Capture all AD Groups for All LoginsSQL Server - Transactions per secondSQL Server : Get middle initial only from the middle name.SQL Server ( Output without Column name )SQL Server 2005 Express: Weird error message running SELECT COUNT querySQL Server 2008 multiple lines in a varchar(MAX) column?Sql Server 2008 R2 keeps disconnecting after a few minutes -- how can I prevent this?SQL Server 2008, what is the difference between (for/after) definition for trigger?Sql Server 2012 Backup failedSQL Server 2012 Row_Number Over Partition By Multiple ColumnsSQL Server 2012 takes long time on simple alter to add NULL columnsSQL Server 2014 misleading error messagesSQL Server 2016 - Inserting a NULL field into a table with a foreign key constraintSql server 2016 storing foreign language dataSQL Server 2017 does not output CHAR(10) and CHAR(13)SQL Server Agent 2016 is occupying high memory consumption.Sql Server agent job stop Job after some timeSql Server Agent last run duration in minutesSQL Server backup to GoogledriveSQL Server blocked access to STATEMENT 'OpenRowset/OpenDatasource' of component 'Ad Hoc Distributed Queries' because this component is turned off as part of the security configurationSQL Server cobian backupSQL SERVER COLLATION TO SUPPORT CHINESE AND KOREAN LANGUAGE ALONG WITH ENGLISHsql server database collationSQL Server DELETE massively inflates transaction logSQL server Equivalent to v$session in OracleSQL Server Error - HRESULT E_FAIL has been returned from a call to a COM componentSQL SERVER error 80040e57sql server function to convert 2 digit year to 4 digit yearSQL Server has been using a process ID of 1968SQL server is giving wrong result when rounding applies after type conversion in some casesSQL Server LDAP QUERY to Active Directory : Search in the active directory where a user is located in a groupSQL Server management studio is not showing the entire dataSQL Server Query from Active Directory.SQL server regex Expression to strip off all non-numeric charactersSQL Server returning -1 rows affected when Stored Procedure is ranSQL Server Standard vs. EnterpriseSQL server throwing error for XML declarationSQL Server try-catch inner exception message conundrumSQL Server Unicode Characters in a columnSQL Server Varchar(Max) chopping off the data, helpSQL Server while loop on multiple conditionsSQL server: store procedure vs. SQL script templateSQL Server: What does mean database hitSQL split string and create AbbreviationSQL State: 37000 Native Error: 102 Incorrect Syntax nearSQL Statement for requesting date 60 days from date.todaySQL Statement Ignore Cascade DeleteSQL Statement to select one record.SQL Subquery - Concatenate ResultsSQL table column won't updateSQL table will not dropSQL to convert decimal to varchar. Need to be separated by commas alsoSql to get military timeSQL to show average with decimal placesSQL Union Statement does not work as expectedSQL Union with empty columnsSQL version 661 and 665sql view running slowSQL Vs Oracle for Round different value why?SQL_Latin1_General_CP1_CI_AS collationSQL_Latin1_General_CP850_CI_AI vs. Latin1_General_CP850_CI_AISQL- Query to find maximum number of concurrent sessionsSQL: Generate random string values Alpha Numeric ONLYSQL: How to extract table names from a SQL query in a columnSql: need to return a row count but reset it at a change in valueSqlBulkCopy - Received an invalid column length from the bcp client ... ???sqlcmd error - HResult 0xFFFFFFFF, Level 16, State 1SQLCMD Invalid filename errorSQLCMD issuessqlcmd parameter without headerSQLServer 2008 R2: The SCHEMA LOCK permission was denied on the objectSQLServer 2012 BCP Error: "Warning: BCP Import with a format file will convert empty strings in delimited columns to NULL"SQLSERVER 2012 How to store old value before update and new values after update?sqlstate 42S02 (error 208). Data Failed to retrieved from database.SSMS - Index build suggestion/recommendationSSMS 2008: BULK INSERT dbo.Project - Incorrect syntax near 'ROWTERMINATOR'. Why?SSMS Ctrl+H Replace using Regular Expressions - how to replace NewLine, Carriage Return?SSMS query causing "There is not enough space on the disk" error.SSPI handshake failed with error code 0x8009030c.[CLIENT: <named pipe>].SSRS phone number formatStandardized Street Address Using T-SQLStart SQL job if not already runningStartService() returned error 5, 'Access is denied.' - xp_servicecontrolSTATISTICS_NORECOMPUTE = OFF in Rebuild Index TaskStep 1 of job is being queued with T-SQL subsystemSteps to alter function used as computed columnStore output of SQL Server EXEC into a tableStored procedure doesn't return the return valueStored Procedure Executes, no row inserted!Stored Procedure for SQL table update from flat file, use BULK INSERTStored Procedure for updating dynamic columns in a tablestored procedure headerStored procedure not showing under listStored procedure output to a text fileStored procedure scope: using sp from another databaseStored procedure sending duplicate emails to all recipientsStored procedure slower than running query in sql server management studioStored Procedure to call .exe without xp_cmdshellStored Procedure to Print @@rowCount and Rollback on @@errorStored Procedure- Multil level employee hierarchy in the same rowStored Procedure, Optional Parameter + OUTPUT Parameter?Storing value startign with 0 in bigint columnStratified samplingstring comparison percentagestring or binary data would be truncated even when theres no records more than destination scheme sizeString or binary data would be truncated - NVARCHAR(max) LIKE clauseSTRING_AGG WITHIN GROUP syntax errorSTRING_AGG() without orderingstring_split - Delimiter with multiple charactersSTRING_SPLIT is not a recognized built-in function namesubquery returned more than 1 value on an insert intoSubquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.Subquery to get most recent record in one-many relationship (a better way?)Subquery with union allsubstitute for STRING_AGG in SQL 2016substring before 2nd or 3rd occurance of characterSUBSTRING equivalent for a number/integer?SUBSTRING START INDEX IS IT ZERO BASEDSubstring with NVARCHARsubtract negative number given positive numberSubtracting hours from DateTimeSubtracting minutes from a DateTime fieldSum a DATETIME fieldSum ans Count in one PivotSum doubling the value..Sum function with group by in outer ApplySum HH:MM:SS in Sql ServerSum of a column with NULL valuesSUM of all calculated columms on a joined child tableSUM returning too many decimal placesSUM(ISNULL(Total,0)) does not return 0Super high performance SELECT last N recordssuppressing messages in SSMS?Syntax Error for Output clause with DELETE using JOINSyntax error in 'IDENTITY'syntax error in CONSTRAINT clause?Syntax to drop constraint if existssys.fn_varbintohexstr vs clr function.sys.sysprocesses query cross join to sys.dm_exec_sql_textSystem.ArgumentNullException: String reference not set to an instance of a String. Parameter name: s System.ArgumentNullException: at System.Text.Encoding.GetBytes(String s)System.Data.SqlClient.SqlException: 'Could not find stored procedure 'False'.'T SQL - Convert unicode Characters to be displayed in ASCII formatt sql to get max length of all nvarchars in a databaseT-SQL [ON PRIMARY]T-SQL CASE statement.. NOT in a SELECT query - ??T-SQL Coding Standard: Pascal or camelCase for column names?T-sql conditional where clause using case statement with parameterT-SQL CREATE FUNCTION AS EXTERNAL NAMET-SQL Equivalent For Group_Concat() FunctionT-SQL Equivalent of VB.Net AndAlso and OrElse operatorsT-SQL error: Adding a value to a 'smalldatetime' column caused overflow. SQL server bug?T-SQL First Tuesday in a Montht-sql for sql loginsT-SQL get substring after slash (\) character?T-SQL HOW TO CONVERT HRS,MINUTES,SECONDS AMD MILLISECONDS INTO DAYSt-sql OUTPUT clause vs. scope_Identity()t-sql question how to order by lengthT-SQL remove leading zeroes in a stringT-SQL Replace at End of StringT-SQL script to add columns dynamically to sql tableT-SQL Script to find the backup job detailsT-SQL Stored Procedure: Calculating GPA based on a students IDT-SQL to convert Datetime and DatetimeOffset to Zulu FormatT-SQL Where 1=1 and Where 1 = 0 , what is the puprose of this statement ?T-SQL: Cursor is not advancing to next recordT-SQL: Performance Issues with View; runs slowT-SQL: Using CASE Statement in WHERE Clause (Multiple conditions)T-SQL: reformatting date from US to EuropeanT'SQL Code for finding the SPID of running jobs (Sql 2000,2005)Table UPDATE : getting this error The multi-part identifier could not be boundTable updated while reading? Locking in SQL ServerTable Valued Function vs. View Performancetable variable in triggertable variable in viewTable with 789.6 million records taking 5 minutes to return records by querying against 28.2 million recordsTable-valued function run once for each row in a table variable.Taking the results from two queries and dividing the output to receive a percentageTemp Table in viewTemp Table with an index - How to delete the index?TEMPDB running out of spaceTemporal Table Errors in DACPAC DeploymentText data type problemThe active result for the query contains no fieldsThe ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_BookingHistory_BookingRef"The awful SELECT COUNT(*)The best book to learn T-sqlThe client connection security context could not be impersonated. Attaching files require an integrated client login???The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.The conversion of the nvarchar value ' 2012 ' overflowed an INT1 column. Use a larger integer columnThe conversion of the nvarchar value '3001822585' overflowed an int column. Maximum integer value exceeded.The conversion of the nvarchar value '4598554672' overflowed an int columnThe current transaction cannot be committed and cannot be rolled back to a savepointThe current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction.The data type of the datetime argument is invalid for argument 1 of the substring function. in SQLThe data types ntext and varchar are incompatible in the add operator.The data types nvarchar and varchar are incompatible in the '&' operator.The data types varchar and bit are incompatible in the add operatorThe data types varchar and date are incompatible in the add operatorThe data types varchar and image are incompatible in the equal to operatorThe data types varchar and varchar are incompatible in the subtract operatorThe database is in single-user modeThe database owner SID recorded in the master database differs from the database owner SID recorded in database 'DB'?The Difference Between OPTION(LOOP JOIN) and FROM [Table] INNER LOOP JOIN [Table]?The EXECUTE permission was denied on the object 'functionName', database 'db_name', schema 'dbo'.The fractional part of the provided time value overflows the scale of the corresponding SQL Server parameter or column. Increase bScale in DBPARAMBINDINFO or column scale to correct this errorThe incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrectThe insert column list used in the MERGE statement cannot contain multi-part identifiers. Use single part identifiers instead.The ltrim function requires 1 argument(s)The mail could not be sent to the recipients because of the mail server failure.The maximum size of ntext?The mechanics of the WHERE clauseThe metadata could not be determined because the statementThe multi-part identifier "alias.field" could not be bound???The multi-part identifier "inserted.id" could not be boundThe ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressionsThe PERCENTILE_CONT function is not allowed in the current compatibility mode.The problem of xp_cmdshell_proxy_accountThe Query in SQL Server 2019 is Very SlowThe query processor could not produce a query plan because a worktable is required, and its minimum row size exceeds the maximum allowable of 8060 bytes.The query processor ran out of stack space during query optimization. Please simplify the queryThe replace function requires 3 argument(s).The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTIONthe select permission was denied on the object 'sysjobs', database 'msdb', schema 'dbo'The substring function requires 3 argument(s).the sum of two columns with null valuesThe table-valued parameter is READONLY and cannot be modifiedThe target is not in the current databaseThe text data type cannot be selected as DISTINCT because it is not comparable.The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.The transaction log for database 'mydatabase' is full. To find out why space in the log cannot be reused, see the log_reuse_waitThe type of column " COLUMNNAME " conflicts with the type of other columns specified in the UNPIVOT list.There are fewer columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement.There is already an object named '#Temp' in the databaseThere is already an object named '#test1' in the database, why?There is any way to disable And Enable all the foreign keys of a database SQL server 2005.There is insufficient result space to convert a money value to smallmoney.This BACKUP or RESTORE command is not supported on a database mirror or secondary replica ?This exceeds the maximum allowable table row size, 8060 - SQL 2008?THROW is replacing RAISERROR, but what is alternative to RAISERROR('Send info to the client', 1, 1)Throwing exception in Stored proc to catch in C# and rollback the transactionTick marks in Sql StatementsTime bucket in 30 minutes intervalTime Delay in a Cursor?Timeout expired on Index CreationTimeout when executing MERGE-statement in SQL Server 2016 in simple recovery modelTinyInt vs Char(1) preformance for a status like columnTips for converting Excel Formula to SQL Server ExpressionsTo access a shared folder providing user name and passwordTo get the 8 digit NUMERICAL ID value from string column without any other special characters and alphabets(?,^,AA...)To Pull First order and last order for all the customers from order table.To update the value of a column having identity increment onTO_CHAR equvilentTo_Char Function Exists in any of MSSQL Versions? {Urgent}Today's date in where clauseTop 10 CPU, Disk IO, Memory consuming queriesTotal cost of a stored proceduretransaction log drive fullTransaction log is not truncated even after log backupTransactions and tracking with in while looptransport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.Transpose Single Row to single ColumnTrigger - Table - Pre insert to check duplicate valuesTrigger - Get values from updatedTrigger - The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction.trigger - to capture data into history tableTRIGGER - TRY/CATCH - HOW TO IGNORE ERRORTrigger AFTER UPDATE can I get the ID of this row?Trigger Error, but please do the insertTrigger on RestoreTrigger only after committrigger problem inserting null values??Trigger returning 'The partner transaction manager has disabled its support for remote/network transactions.'Trigger to insert a record only if there is a change in any value.Trigger to update another database table based on table changesTrigger with error handlingTRIGGERS :Cannot use text, ntext, or image columns in the 'inserted' and 'deleted' tables.Triggers on system tables ?Trim during insertsTrim leading ZeroTrim leading zerosTrim the data after space in a stringTriple single quoteTrouble w/ using SWITCH statement w/ partitionsTrouble with Create Schema statementTruncate a Table from Linked ServerTruncate datetime to cut off minutes and secondsTruncate in Stored ProcedureTruncate or dropping table take forevertruncate table not good idea for productionTruncate table statement is very slowTruncate Table Taking too Long a TimeTruncating Table which has reference on Index View, How?TRY CATCH exit Statements in CATCHTry/Catch Finally block?Trying to Import Excel Data from queryTrying to Load Data from Excel into SQL Server. 32-bit Excel and 64-bit SQL Server.Trying to print text followed by INT variable output failsTrying to Use COALESCE/ISNULL with CAST in Select StatementTSQL date convert "MMM/yyyy" formatTSQL - Performance Issue with NVARCHAR(MAX) columnTSQL - Using ALTER TABLE - ALTER COLUMN to modify column type / Set Identity ColumnTSQL Date Greater than or equal to today less 5 daysTSQL Exercises using AdventureWorksTSQL how to convert/cast varbinary to datetime? (SQL 2005)TSQL Merge - Multiple statements after THENTSQL NOT ISNULL(A,0)Tsql Query to read data between bracketsTSQL Row number with case conditionTSQL to convert DDMMYYHHMMSS into datetime formatTSQL to Convert seconds into minutes and round up to next integertsql to parse/separate/split a decimal (float) column into two Int columns - whole number in one column and decimal part (as int) in another column?TURN off Identity insert OFF for all tablesTurning off logging for table in SQL serverTVP Performance with high volume...Two strings compare equal using '=' but fail in 'like' compareTwo Table in Select * FROM Table1,table2txt file to sql table type using OPENROWSET "BULK"Type conversion in expression - WarningTypes don't match between the anchor and the recursive part in column "StartDate" of recursive query "CTE".Types of date format in Sql ServerUNABLE to ADD or DROP a Constraint - SQL Complains!Unable to create index 'PK_Task' duplicate key was found for the object name 'dbo.Task' and the index name 'PK_Task'Unable to drop temp tablesUnable to open BCP host data-file ErrorUnable to open the physical file Operating system error 2Unable to Query an External table using polybase.Unable to retrieve data from a linked MySQL ServerUnable to Shrink database or Log Fileunable to switch the encoding error when working with XML in SQL ServerUnable to update the datetime columnUncommittable transaction is detected at the end of the batch. The transaction is rolled back.Understanding db_securityadmin roleUndo a SQL Server update statement?Unescaping Strings in T-SQLUnexpected sort order when column values contain dashUnicode support for Indian rupee symbol in sql server 2008 R2Union All and CTE doesn't works.UNION ALL and Group BY queryUnion All issue over two databases- [
UNION ALL producing error Conversion failed when converting the varchar value '0' to data type int.](/archive/msdn-technet-forums/d0b95035-5d85-4ec4-bc48-b3e60e281c3a "UNION ALL producing error Conversion failed when converting the varchar value '0' to data type int.") UNION ALL with IF...ELSE (Transact-SQL)Union All with multiple exec(@query) with dynamic column nameUNION between two CTE result setUNION Query - text and date time formatting issueUnion Query to get multiple rows in a single row - sql server 2008Union results from Stored ProcsUnion Select ALL query not returning all rowsUNION vs DISTINCTUnique Identifier vs Varchar(36) for storing GUIDsUnique integer based on unique stringuniqueidentifier and stored proceduresUnlock a stored procedureUnpivot, Pivot without AggregationUnzip a file in TSQL from a variableUPDATE - SET field+=value - ATOMIC / Concurrency safe ?Update 700 Million Records QuicklyUpdate a column randomly based on values from another tableUPDATE alternatives - which method is most efficient?Update column in table1 from table2update column with a unique and random stringUpdate column with values from the same columnUpdate Date value alone of a date time field in sqlUpdate datetime filed with nullupdate datetime to date onlyUpdate Fields in table only if the field is nullUpdate foreign key columnUPDATE is much faster than DELETE+INSERT sql serverUpdate multiple databases based on databasenameUpdate multiple rows in a table from a subqueryupdate multiple rows with subquery that use EXCEPTUpdate Multiple using Select - Subquery returned more than 1 valueUpdate on one table takes too longUpdate Openquery to Oracle with dateUPDATE OPENROWSET not workingUpdate or insert of view failed because it contains a derived or constant fieldUpdate or insert of view or function 'Target' failed because it contains a derived or constant fieldUpdate Primary Key column in Sql ServerUPDATE query - An aggregate may not appear in the set list of an UPDATE statement.Update Query from One Database table to Another Database TableUpdate query View or function 'a' is not updatable because the modification affects multiple base tables.Update row in Date column to GETDATE() if the record is older than 24 monthsupdate smalldatetime columnUPDATE Statement Failing on Unique Key Constraintupdate statement with COALESCEupdate stats with full scan on databaseupdate table all null values to 0 single queryUPDATE TABLE FROM LINK SERVERUPDATE TABLE using ROW_NUMBER() OVER...Update Temp table with a While LoopUpdate the same table in the triggerUpdate timestamp column in existing tableUpdate TOP (1) ?Update trigger -> not updating.Update Trigger Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.update WITH (ROWLOCK)Update with Select top n statementUpdate with TOP 1 SELECTUpdating a temporary table from another table by matching column values.Updating a varbinary field - extra leading zero addedUpdating only one rowUpdating SQL column value with previous row data?Upper limit of open SQL cursorUPSERT using MERGE or otherwise on very large tablesUrgently need to recover deleted/truncated data from tablesuse a stored procedure in a select subqueryuse CTE in left joinUse Database Name in VariableUse dateDiff and how to take care of the value of end date is nullUse DateDiff to get Age In MonthsUse of Count(*) in WHERE Clause?Use of GO in a Stored Procedureuse of temp table in user defined functions (UDF) in SQL serverUse of the "updlock" hint with update and insert statementsUse of Update with (NOLOCK)Use ROW_NUMBER as a join to in a query.Use sequences and triggers for identityUse Stuff and joins togetherUse Table Name or Table Alias in Update Action QueryUse Table Variable In Dynamic SQLUse trigger to set default values based on other columnsUser cannot insert into Temp TableUser Defined Function created already is not able to modifyUser input thru SSMSUsers granted in Linked ServerUsing $(ESCAPE_NONE(JOBID)) in a Stored Procedure (SQL Server 2008 R2)Using a CTE as a parameter for a table-value parameterUsing a CTE to delete rowsUsing a CTE to Filter dataUsing a parameter for the "IN" clauseUsing a SQL variable name to refer to a file path.Using a trigger to prevent a record from being deletedUsing a While inside a select statementUsing Alias in UPDATE SQL StatementUsing Alter Statemement to add a constraint to set a column 'Date' to be less than (<) today's date?Using BCP utility in a Batch file.using Bulk Insert, get error: Invalid column number in the format fileUsing calculated field in the group by clauseusing case in partition by (ranking function)Using Case in Select with OpenQueryUsing CASE Statement to SET variableUsing CASE statement within GROUP BYUsing Cast and distinct together in queryUsing CAST and SUM to calculate a Percentageusing CAST in computed fieldUsing COALESCE to select from multiple tablesUsing Column Name Variable in Update ClauseUsing COUNT(*) from SELECT statement for UPDATE qryUsing CROSS APPLY to convert COLUMNS to ROWS and skip COLUMNS with NULL valuesUsing CTE to get result without using while loopUsing Date values in Dynamic SQL within a WHERE clauseusing decile ranking in sql serverUsing DISTINCT with SELECT INTOUsing dynamic column names stored in a table in select statementUsing dynamic SQL in Transaction BlockUsing Dynamic SQL with trigger and stored proceduresUsing error handling techniques in cursor routineUsing EXEC master.dbo.xp_cmdshell to copy a file from path with dollar sign !??!?using EXEC to execute a formula stored in a stringUsing EXEC with a table variable?Using EXEC/EXECUTE with an UPDATE T-SQL statement - not firing as expectedUsing EXISTS in SELECT listUsing EXISTS with dynamic queryusing exists with group byusing function in select queryUsing get month against Financial CalendarUsing IF...Else and Rollback TransactionUsing INSERT with CASE and SELECTUsing ISNULL in CASE statementUsing Lag to get the last "non-null" valueUsing Max and Sum functions within the same queryUsing MAX() In Case StatementUsing Merge - SQL Data WarehouseUsing Min and MAX function on Bit FieldUsing Multiple CTEs in a SQL viewUsing new THROW statementUsing NOLOCK with in BEGIN TRANSACTIONUsing NOT LIKE in a CASE statementusing OPEN QUERY in From clause and JoinsUsing OPENQUERY with variables in the argumentUsing OPENROWSET for csv filesUsing OPENROWSET with a join expression results in MASSIVE (!) 10 min. nested loopUsing OPTION clause within CREATE FUNCTION statement for inline table functionsUsing PATINDEX and SUBSTRING to extract 8-10 digits date?Using PatIndex to find all numeric valuesUsing PIVOT with Multiple AggregatesUsing PRINT within a functionusing raiserror to raise an error and exitUsing ranking function to get latest entryUsing ROUND with PIVOTusing rowcount and WHILE for mass data insert?Using RowCount or similar to either commit or roll back a queryUsing SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED in a viewUsing sp_send_dbmail , bcc recipient is getting duplicate emailsUsing sp_send_dbmail to send the query results in the excel sheetUsing SQL Delay inside TriggersUsing SQL to calculate the IRRUsing stored procedure in a Where clause.Using Stored Procedure to Insert Data and Return ValueUsing SUM result in a WHERE clauseusing SUM with rank() over (partitionUsing table variables with DELETEUsing TABLOCKusing temp table in functionusing temporal as of clause in a joinUsing the bcp command to export a table or view into an excel fileUsing the results of a CAST in a WHERE clauseUsing try catch in a stored proc thats using cursorsUsing Union All when inerting into temp tablesusing UniqueIdentifier list in Select * from table where UniqueIdentifierCol in UniqueIdentifierListusing UPDATE on a GROUP BY clauseUsing varchar for primary key value ok?Using Variable for Column name in sql store procedureUsing Variable in SQL IN ClauseUsing Variables in Where ClauseUsing While Loop for SQL Server UpdateUsing XP_CMDSHELL to send the file to a specific network destinationUsing xp_dirtree to pass filenames to a loopUTF8 / Codepage 65001 BULK INSERT failureValidate Data is in YYYYMMDD formatValidate each field of every row in sql table. If the record is valid then send email saying valid record, if invalid then send email with validation failure details,VARBINARY -vs- VARBINARY(MAX) truncate issueVarbinary to xml conversion errorVARBINARY TruncatesVarbinary(Max) to UTF-8 ?varchar(100) Vs varchar(1000)variable assignment is not allowed in a cursor declarationVariable based name for temp table during SPVariable Exists checkvariable substitution in sql servervariables on RAISERRORVery slow execution for a MERGE statement - SQL Server 2012View image stored in VARBINARY(MAX) column in SQL SERVER 2008VIEW runs but cannot be edited - too many prefixesView Temp table ownershipView-Schemabinding error-Names must be in two-part format and an object cannot reference itself.Views or functions cannot reference themselves directly or indirectly.Wait until sp_start_job completesWant to remove specific charcters and number from 1 columnwant to update one row at a time but all rows in the table. URGENT!Web Service call from SQL ServerWeek number in sql serverWeird stored procedure pre-execute JSON error: Msg 13609, Level 16, State 2, Procedure ..., Line ... [Batch Start Line ...] JSON text is not properly formatted. Unexpected character '.' is found at position 0.what account does bulk-insert use when running from ssms?What are SQL Server Binary Files?What are the Pros and Cons of using the MERGE statement versus EXCEPT in identifying changed dimensional dataWhat are Weights in SQL Server?What causes sp_procedure_params_100_managed to be called when a stored procedure with parameters is executed in SQL2012What does "Estimated Operator Cost" mean?what does "Must declare the scalar variable "@bExist" mean?what does { } means in sql queryWhat does COLLATE Latin1_General_CI_AS NULL do?What does exclamation (!) mark mean next to variable?What does mean "DECIMAL(6,3)" in the following Stored ProcedureWhat does N' and U' mean in this code?What does this percentage sign mean here?What GRANT permission do I ask for to be able to see the SQL that went into a viewWhat is "with execute as caller" in SP?What is a Domain account in Sql server. How do i create a Domain account?What is alternative to Table PARTITIONING in sql server standard edition ?What is CUBE and ROLLUP???what is dbo.split?What is difference between SP_WHO & SP_WHO2?What is difference between the server name and instance Nameswhat is difference between views and table and stored procedureWhat is function of the ignore_dup_key option?What is INSERT BULK?What is Logical File Name?What is READPAST lock and how it workswhat is table spool in execution plan ? how to avoid this ?What is the alternative of LEAD in SQL Server 2008 R2What is the available free space in database properties in SQL database and how it variesWhat is the best practice when returning custom messages from stored procedureWhat is the best way to get date and hour with zero minute and second ?What is the best way to return boolean logic from a UDF?what is the data type that accepts 1,000,000 characters in one cell ?what is the difference between auto increment and identitywhat is the difference between covering and included indexes ?What is the difference between HOLDLOCK and UPDLOCK in sql serverwhat is the difference between Static cursor,Dynamic cursor and keyset cursorwhat is the difference between using Cursors and aTemp tablewhat is the easiest way to drop all objects of a schema?What is the equivalent of oracle function NEXT_DAY in sql serverWhat is the good solution for deleting a large number of rows in huge database without growing transaction log file?What is the limitations for Pivot table in sql server ?What is the meaning of IF @@trancount > 0 ROLLBACK TRANSACTIONWhat is the meaning of UPDATE and DELETE WITH(NOLOCK) statements?What is the overhead of indexes?What is the reason for not allowed to write delete statements in a function?What is the result of "SELECT 2/2/4" in SQL ? And Why?What is the use of table master.dbo.spt_values..what is the way to compare two datetime columns in sql server tableWhat is this Job "syspolicy_purge_history" ? what does it do?What is wrong with this merge statementWhat permissions are needed to execute stored procedure?What should be the naming convention for indexes?What the maximum UNION can be use on a single SQL?What's the best way to compare two numberswhat's Uncommittable Transaction?Whats the best way to debug a user defined functionWhats the use Ragged right in flat file connection manager in SSISWhats this dollar sign next to my database name in my query?when join two tables with Composite primary keys, what will be best performance, use some fields, or all fieldsWhen was the last time a record was added/modified in a sql table?When will CTE Query be executedWhere Clause comparing int with string literalsWhere clause using a Uniqueidentifier datatypeWhere Clause Using Relative DatesWhere condition in OpenQueryWhere does CTE results get stored?WHERE DOES NOT CONTAINWHERE IN with composite key.WHERE Statement with Time and Date (Previous Day After 7pm and Current Day up to 9am)where to and where not to use WITH (NOLOCK)Where, Group By, Having, Order --- Usage sequence?Whether a column is nullable by default?Which data type to store a UTC Date/Time?Which Language is known by only one programmer? and their names. If possible all detailsWhich of the following SQL statements has correct syntax?Which one of using Left join or using CTE is better in this instance query?Which paging method (Sql Server 2008) for BEST performance ?while loop and delete statementWhile Loop Does not end when condition is no longer Truewhile loop for datewhile loop in viewWhile Loop or CTE which one will give better performance.while loop with case statementwhile loop with variable in sqlWHILE Loop with WAITFOR DELAYWho has accessed MS SQL Server? Which tables?Who has accessed my Sql server databases objects and when?Who modified my Stored Procedure?Why am I getting "There is already an object named '#TempTable...' in the database." within my SQL Server IF StatementWhy am I receiving "No Join Predicate" warningWhy are there so many(106) Hungarian collations?why bit type values displays as True or False?Why can't I concat inside of RAISERROR?Why DML operations are not allowed in functions in SQL Server?Why does decimal(38, 20) not give 20 decimal places?Why does SELECT INTO only work for tables that don't exist?Why does this query timeout in an application but not in Management Studio?Why does UPDATE of #Temp table w/300K rows in stored procedure generate 1.8 million more logical reads than UPDATE of similar permanent table?Why Incorrect syntax near the keyword 'UNION'.Why is coalesce converting my string to an int?Why is function call returning 'Invalid object name'?Why is JOIN on a temp table so much faster than a JOIN on a CTE?Why is nvarchar(max) size limited to 4000 charactersWhy is start_date blue when it isn't a reserved word?Why is stored procedure slow, while same query fast?Why is this TRY-CATCH block not catching the exception?Why ISNULL in subquery works this way?why RID lock will effect the other RID lock in which different data page.why should primary key be the first column in a tableWhy String Got Cut-off In Print OutputWhy T-SQL compare strings case insensitively ?Why we can't use order by in a view?Why wrap just a SELECT statement in a TRANSACTION?wideworldimporters in excelWierd error with transactionWildcard in stored procedureswill this degrade performance of query if you use Upper function?Windowed functions do not support constants as ORDER BY clause expressions.WITH (NOLOCK) improves the Performance?WITH CHECK OPTIONWorkaround for more than 4 parts with PARSENAMEWould like to convert Base64 string and convert it to an image in my TSQL.Wrap function in SQLWriting a temp table with BCPWriting Data to a SYSLOG ServerXML data type not supported in Distributed Queriesxml encoding utf-16 not working in sqlserverXML operation resulted an XML data type exceeding 2GB in size. Operation aborted.XML Output when Blank, Space or NullXML parsing: line 1, character 28, illegal qualified name characterXML query returning NULL values for the given queryXMLAGG equivalent in SQL server 2014xp_cmdshell always returns NULLxp_cmdShell DIR command to check if file existsxp_cmdshell throws Access is Denied errorXP_CMDSHELL with net use is throwing error when used with proxy accountxp_fileexist - permissionxp_sqlagent_enum_jobs documentation?Year To Date, quarter to date and Months to date sum in single queryYou can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation levelsYou do not have permission to use the bulk load statement error