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

coding a trigger to cope with NULL rows

Ok so Im trying to put together some basic auditing on a particular table via trigger All works well when a row is inserted but when a row of nulls is passed to be inserted it fails dismally ..e.g 

View Article


in the time to have timemoe to is sheroe

[url=https://pgachampionship-2017.net/]PGA Championship 2017[/url][url=https://pgachampionship-2017.net/]PGA Championship 2017 Live[/url][url=https://pgachampionship-2017.net/]PGA Championship 2017...

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

Retrieve value from XML

I've been trying to figure out the syntax for pulling the value for INSTANCENAME.  Here is the top of the XML that resides in the row:<DataFeed...

View Article

Replication : can we list out transactions group by articles?

We are having issues with replication latency in our environment. I figured out it's from a particular database. But is there any way we can list out the particular table where heavy modifications are...

View Article


Function quick...where clause not :(

Hi,I have a function which returns a table really quickly but when I add a where clause after it it takes a long time and causes the SSIS tasks to timeout.The base table it is pulling from is approx...

View Article

SQL Update with Subquery

Hello All, I have the below statement and when it runs it just makes the field Overridenotes field null in the Update table

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


Extract New Members from Gridview

Hello Boss,kindly assist with a code to extract new members in the scenario described below:1. i have a table in sql that stores names and IDs, 2. in c# datagridview "A", i upload from excel list of...

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

ODBC troubles.

Hello All,With a ODBC link we are trying to Obtain data from a Cache database.We are running into a few problems.Problem 1;The system 'hangs' some times. This is probably not caused by specific queries,

View Article

Triggers and Stored procedures

I have read material and combining these 2 in SQL. However, my question is a little different.I have 2 databases.  1 db has up to date information that is updated daily or even on the hour. Db2 is a...

View Article

Select Statement Help

Hello All, I am needing help with creating a SQL query. I'm sure I am just over thinking it.  Below is a table I have with data. I am wanting to group the data below by ID and pull the date from the...

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

DBCC CheckDB WITH TableResults

Does anyone have a reference to the columns (and preferably datatypes) in the output of the different versions - or at least 2008R2 upwards?taAndrew

View Article


Fill in missing gaps on intergers

given a starting value and an ending value when stored as INT. how can i achieve the following.[code language="sql"]CREATE TABLE #T (Id INT IDENTITY(1,1) PRIMARY KEY NOT NULL, StartSeqNo INT, EndSeqN

View Article

Updatable View to remote table with Identity column using phantom NextVal? -...

I have a situation and I need some internal advice. Here is the history of the situation. We have a production system with internal security tables inside the production database. Same old stuff....

View Article


Inserting apostrophes into result set

Hi all, Been having some fun with the following code, and hit a roadblock.  It generates an update statement (to be used Live to Test)Select

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

CASE expression in GROUP BY clause

Hi Experts, Can  this below sql statement be optimized? There are some 40 lakh odd records in the table. So checking , Is there a better way to replace/avoid CASE in GROUP BY Clause with an expression...

View Article
Browsing all 3145 articles
Browse latest View live