Quantcast
Channel: Transact-SQL forum
Browsing all 23857 articles
Browse latest View live

Hive insert with openquery

Hi, My question is based on this article http://ayadshammout.com/2013/05/27/import-hadoop-data-into-sql-bi-semantic-model-tabular/ Mentioned in the article is an example of using openquery to perform...

View Article


Total execution time of a query

Hi,Is there a way to find the start time and end time of a query which ran two days ago?Thanks,Preetha

View Article


how to manage 120,000,000 records in a single SQL SERVER Database

is it is possible to store this large amounts data in sql any version or is it possible it with sql serverif it is possible then how to search fast from this database using vb.net please suggest me 

View Article

Sorting alphanumeric data

I have data that is stored in a varchar(20) column that looks numeric but can be alphanumeric.For instance: I've tried this:1a11a2a35a61 I want the order to be:11a2a35a611a SQL I've tried is: Code...

View Article

Hoe to put If Else condition to check one coulmn value is present in another...

Hi All,I have main data set which consists of lacks of records and below is my queryDECLARE @USER_DT DATETIME SET @USER_DT = '2013-08-01' DECLARE @RANGE_DATE DATETIME SELECT distinct @RANGE_DATE =...

View Article


How to not repeat a value in the column multiple times

Hi my query is just to get three fields NAME,POLICYID and AMNT. One NAME can have multiple values but in the results dataset i want the name to appear only just once.But i want MARTIN M to appear just...

View Article

adding left joins changes results

i have simple query with left join  select x.id , count(y.xid) from x left join y on y.xid = x.id group by x.id  this qouery gives me the correct results but the same query with more left joins return...

View Article

binary_checksum produce same number for different values

Hi AllI want to produce unique number using with table columns,the problem is,i used lots of combination of checksum,binary_checksum,but these functions produce same number for different values.Do you...

View Article


Need to Split blob of data into records

Hi All,First i would thank everyone who helped me in getting the solution for the previous tasks and hope i will be able to get the solution again.I have blob of data which gets inserted into a single...

View Article


Image may be NSFW.
Clik here to view.

Only cleints with single output to be dispalyed

SELECT t1.new_applicantidname AS ClientName, t1.new_programmeappliedforidname AS BSUSProgramme, t2.new_programmeappliedforidname AS NEAProgramme, a1.new_evidenceforoutputidname as BSUSOutput,...

View Article

Image may be NSFW.
Clik here to view.

Only clients with single output to be dispalyed

SELECT t1.new_applicantidname AS ClientName, t1.new_programmeappliedforidname AS BSUSProgramme, t2.new_programmeappliedforidname AS NEAProgramme, a1.new_evidenceforoutputidname as BSUSOutput,...

View Article

Where Three columns NOT IN

I have a Table 1.Imp Id    State   landuse   and few other columns1      VA       ABC 2     VA        ABCD 3     VA       ABCD  4     MD      XYZ 5     MD      ABCD 6    MD      ABC 7    PA     ABC 8...

View Article

can't read data from linked server (sql server 2000) -- primary server Sql...

The linked server name is hermes (sql server 2000 Standard 32 bit).  I just used the Linked Server wizard in SSMS (workstation win7 64 bit - local server sql server 2008 R2 Express 64 bit).  The linked...

View Article


update smalldatetime column

hi everyone,i have this list of dates and  i need to update the dates to a tables' smalldatetime columni tried updating in various ways such as:begin tran update dw_fact_emrg_visits set release_date =...

View Article

Need Suggestion - Performance Issue

Hello guys, Finally I'm here for your help after various trials with my data.Scenario:I'm dealing 50M records and row length is 7000 wide. I have to load into destination table, according to my...

View Article


How to handling concurrency issues

Hi,What is the best approach to update three tables at a time to avoid concurrency problem. The most important thing here is the data integrity. The application scenario lead clearly to the possibility...

View Article

Image may be NSFW.
Clik here to view.

You could be September's TechNet Guru! Turbo charge your CV with awards and...

TechNet Wiki is partnering with... YOU! Give us some juicy technical content and we might big you up!It really is that simple! Show us your forum solutions or drop us some nifty snippets and become...

View Article


Tables having 100 crores records creating problem

I have one table name abc which has the records above 100 crores data. I am using this table in the procedure pqr where I am performing following operation in this table: 1) select count2) Delete3)...

View Article

Need Help

HiI have a result set as below. I need output as given.ManId Qstn Value 1-15  0 1-7   0 1-8   1 1-6   1 1-9   0The output should be    00110. The order of the value is based on Qstn as given above.Amar

View Article

SQL server 2000 Database name doesnot showing in SqlQuery Analyzer in Sql 2000

HiI created one database via enterprice manger and copy past the my latest mdf and ldf file with specified path . After that I checked all the table are came properly or not. I can see all are perfect...

View Article
Browsing all 23857 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>