Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Browsing all 3145 articles
Browse latest View live

Using PATINDEX To Determine If A String Is Alpha

Hi Guys,I'm trying to write an SQL Server function to determine if the value passed to the function is alpha.  The value would be a word.  Is it possible to use PATINDEX to accomplish this?  This is...

View Article


How Important Is The Semi-Colon In Coding Stored Procedures?

Hi Guys,Just a quick question....  How important is it to use the semicolon as a statement terminator when coding a stored procedure?  I understand that the semicolon is the statement terminator in...

View Article


Allow Zero Length Contraint

Hi Guys, I have a question about table constraints.  Most of the fields in my primary table allow nulls.  Mostly because the database was upsized from an Access database which already had data in it....

View Article

Using SQL Server Debugger

Hi Guys,I need some instruction in using SQL Server's Debugger.  I have been trying to use it to step through a Stored Procedure in order to figure out why I'm not getting the desired output and don't...

View Article

Handling DBNull When Inserting or Updating Using Stored Query

Hi Guys,I have a question and I'm hoping someone can help me sort out a clean and effective way of handling my problem.  Most of the fields in my primary table are not required and thus allow nulls....

View Article


The Multi-Part Identifier 'UDF-Name' Cannot Be Bound.

Hi Guys,I'm having a bit of a problem writing what I thought was going to be a rather straight-forward SP.  I'm getting a red flag from the editor on multiple lines.  The error is the same for all...

View Article

Arrays In SQL Server

Hi Guys,I have a question about arrays in SQL Server.  I know there is no array data type in Server.  I need a way to pass multiple keys into a SP.  The method I'm considering is to declare an input...

View Article

Using The SQL Server Debugger

Hi Guys,I need some guidance in the proper way to use the debugger in SQL Server.  I've tried setting break points in my script files then executing the stored procedure directly and nothing ever...

View Article


Best Approach For Junction Table Mainrenace

Hi Guys,I wanted to get your thoughts on the best approach for maintaining a junction table.   My database has one junction table.  1 to n records are possible for each record in the primary table....

View Article


Using Try Catch With Stored Procedures

Hi Guys,I'm hoping someone would be willing to spot check me here.  I'm attempting to add Try Catch Blocks to my SPs and I just want to be sure I'm doing it correctly.  Here's my SP.  Please let me...

View Article

Are These Two Code Fragments Equal?

Hi Guys,I'm kind of stumped here and could use another set of eyes.  I've got two pieces of code that are supposed to do the same thing, but they don't.  The first fragment is VB.Net calls to...

View Article

Silent truncation using OpenRowSet to Bulk Load data

Hello,I have to load CSV data into SQL server table using OpenRowSet. I have installed the AccessDatabaseEngine_X64.exe, Access and SQL server both are 64-bit. Also enabled below settings,

View Article

Any tool/query to extract table list from a complex query

Hi All, Is there any tool/tsql-query to pull all the tables involved in a sql query. Assuming it is a complex query which involves multi-table joins in that case how can find out the tables. Currently,...

View Article


Case and replace

Hi,I have got a number of records that begin with 044, I need to replace that with 0. I am using this replace(cli,'044','0'), however some records are 044123044 and so it replaces the end of the record...

View Article

Determine Monday of next month and Monday of next week

I am trying to determine the first Mondayof the next Month when the first Monday of this month has passed. Also the samefor a Mond

View Article


Removing Repeating Data From a Fuzzy Match Result

I'm in the process of cleaning up a lookup table we have that is used to match on a name and provide a "clean" name based on that pairing.  As you can imagine, since this is a process manually handled...

View Article

date fillers - dates in two rows

Hello All,I need a very efficient way to duplicate rows based on dates in rows. table structure is something as followsCREATE TABLE #OutputResultSet                           &nbsp

View Article


Help With Update Statement

Hey Everyone, I am needing help wit the Update statement below.  The issue I am running into is the Max(Final Status) is not being pulled, but when I add the actual UniqueID on the where clause the...

View Article

clues and running for his life

[url=https://www.linkedin.com/company/watch-michigan-state-vs-bowling-green-live-stream-free-ncaaf-week1]Michigan State vs Bowling Green Live Stream[/url]

View Article

Subscribe to the Post Most newsletter

[url=https://www.facebook.com/events/113980745982576/]California vs North Carolina Live Stream[/url]

View Article
Browsing all 3145 articles
Browse latest View live