Quantcast
Browsing all 3145 articles
Browse latest View live

Value set in CONTEXT_INFO not able to fetch in trigger proc

Hello!I have two different procs for deleting the record and another proc for trigger which stores data in some history table.I am trying to set value in CONTEXT_INFO with user name and I need this...

View Article


Reason for Migrating SQL 2012 to SQL 2014

All,We have recently migrated SQL 2008 DB to SQL 2012. We modified the queries/procedures to make use of new features ( from a developer perspective)SQL 2014 is release now. Apart from IN-memory OLTP,...

View Article


why it is not possible to execute this way set context_info...

why it is not possible to write following statementset context_info convert(varbinary(128), 'xyz') as I am considering required parameter as varbinary

View Article

Reason for dropping TEXT, IMAGE data types

All,what is the reason for dropping TEXT & IMAGE data type from the latest version? Memory issue ?Performance issue?Maintenance issue ?

View Article

4-4-5 Calendar Creation Table in SQL Server

HI ,Could some one please provide me with 4-4-5 Calender table creation Script where i would need the following columns .. Thanks in AdvanceColumns : YearQuarterPeriodMonthFiscalWeekWeekWeekDayDatedays

View Article


Quirky Update in SQL 2014

Does SQL 2014 still support "Quirky Update" ? or is this hole sealed with "QuickFix" ? :)

View Article

java.sql.SQLException Error Code: 0 SQL State: 2C000

While i am trying to connect with sql server 2012 with collation "Chinese_Hong_Kong_Stroke_90_CI_AS" through java code.I am getting error message like this Error message:=============An error occurred...

View Article

query error

Hi i am getting the below error when i run this query.Msg 241, Level 16, State 1, Line 2Conversion failed when converting datetime from character string.Declare @EndDate Datetimeselect @EndDate =...

View Article


Query issue 2

Hi if any one have solution for this please let me know.i am getting the below convertion issue when i run the below mentioned query.Msg 241, Level 16, State 1, Line 2Conversion failed when converting...

View Article


Need a Query where with case statement

This Query is not working please help........select * from tbl eINNER JOIN LKUP L ON e.ID=L.LKUP_ID WHERE CASE WHEN ISNULL(DATEPART(YY,(SU_DT)),0)=2014 OR ISNULL(DATEPART(mm,(SU_DT)),0)>=11THEN...

View Article

how to write query

HelloI have to generate a report in which amount should be 13 digits.e.g 2000- convert it into paisa 200000 then 13 digit amount is 0000000200000but I want it to do in SQl query..Select (amount*100)...

View Article

how to write a query with subquery

i want to query for consumer, phone and address, SSN informationconsumer table is ConsumerPhone are in table ConsumerPhone with FK to PhoneType and consumer tableAddress are in table ConsumerAddress...

View Article

BCP Error

Hi I'm trying to queryout a result from table to file using BCP in SQL server 2012 . My T-SQL is as belowexec master.sys.xp_cmdshell BCP "SELECT FileContent FROM [StoreReferenceFiles] WHERE FileId =...

View Article


Tables inside In-Memory 2014

How the data are stored in memory.How the memory is been shared between database and OS operations.What will happen after the system/ software restart.Do we need to restore all the data into memory...

View Article

N' annotation

I am still trying to make sense of the whole n' when selecting text or varchar values... Is that so necessary? Can someone give me an example?

View Article


Query to show Items in FIFO method.

Dear Experts,my client needs a report which shows inventory data.he executes this report before every sale and checks the Item availability.we should show the report in FIFO method.Sl.No. Itemcode Qty...

View Article

How check constaint works?

Hi All!I have added check constraint on table. I am calling one function in that check constraint.Actually I have to prevent two records of same type should not have same date range as a result of...

View Article


how to convert date in varchar format into datetime

Hello Everyone,I have table in which date is in varchar format i.e. '29/09/2013'now I want to insert the records in table1 into table2 where datatype of datecolumn is datetime so I need to convert the...

View Article

How to write the Following Equevalant Query

Hi,can anyone provide me the equivalent MS SQL server query for the following query:LOAD DATA LOCAL INFILE '/tmp/ state_reg_photo.csv.csv'INTO TABLE REGISTRAR_REPORTS.srdh_photodataFIELDS TERMINATED BY...

View Article

The special character changed to question mark in DB

Hi.. When i am trying to insert delta symbol into db, its converted to question mark(?) symbol. I am passing an xml via stored procedure and i checked with query profiler the input is delta only, but...

View Article
Browsing all 3145 articles
Browse latest View live