Quantcast
Browsing latest articles
Browse All 16 View Live

Use Dates in oracle linked server

I have an Oracle Linked server and i need to pull transactions within a given date range but I amd not familiar with how to convert or where to convert the types so the oracle will recognize my...

View Article


truncated data

Investigate the cause of table blah_blah being truncated, not deleted on a daily basis. The time it happened this morning was after 2.44 am CT and 12noon CT. I ran a trace for 1hour which started at...

View Article


Want to combine multiple rows of a distinct query to 1 line per distinct entry

I want to join the results of a distinct query so that I get 1 line per distinct entry. Let's say my table looks like this: IDCode Value ID1 1 ID1 2 ID1 3 ID2 1 ID2 2 I want the result of my query to...

View Article

How to port the Mysql server table into MS SQL server

I want to port a table from MySql server to MS SQL server daily. Please give suggestion.. Thanks in advance

View Article

i am getting this error when i try to make a connection using php code to a...

the error is SQLSTATE: 08001 code: 53 message: [Microsoft][SQL Server Native Client 11.0]Named Pipes Provider: Could not open a connection to SQL Server [53]. if some can help please.

View Article


What is correct: Lat/Long or Long/Lat?

I'm trying to compare two points on a map using SQL Server. I use geography::Point to create the actual point and do my calculations. However, when I look at MS website I find one case that shows Point...

View Article

Read records from table without using Cursor

I have 2 tables(Table A & Table B).I wish to read one by one records from Table A and compare with Table B.Currently we have use cursor for this purpose.But the SQL Server is waiting on the I/O to...

View Article

SQL Query to forward last month current bal to Balance last month of next month

Guys, I have 3 data tables to consolidate and calculate the balance_cm(current month) and balance_lm(last month) and Order Qty. I want to add the result of balance_cm and balance_lm and Order qty as...

View Article


After commit in a trigger, it says MARS batch is still active at the end of...

i'm try to update table in linked server using procedure and trigger create trigger ksunil on testingtable after update as declare @jid nvarchar(50); declare @mid nvarchar(50); declare @jmcredit...

View Article


How to Order multiple Rows in SQL Server

declare @result table (FirstFieldID int, FirstFieldIDName varchar(100), SecondFieldID int, SecondFieldName varchar(100),ObjectID int, ObjectName varchar(100), SubSort int ,TotalStudents int) insert...

View Article

How to properly assign sequential numbers to parts list

I have a table in a database which represents parts that must be ordered for a project. There are MULTIPLE instances of some part numbers and they obviously have a manufacturing company field. I'm...

View Article

Using MS SQL to create Actice Directory User Accounts from SIS Exports

Hi! I am new to SQL and I am wondering if SQL will be a useful tool in automating Active Directory accounts from our Student Information System (SIS) exports. The exports are Tab Delimited Text files...

View Article

get one month back data for each row in ms sql

t is my humble request, if some one can solve my problem. it would be greatly appreciated.questoin: I have a table with id, date and amount. and I want to get one month prior data for the same id in...

View Article

Browsing latest articles
Browse All 16 View Live