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 ArticleReason 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 Articlewhy 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 ArticleReason 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 Article4-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 ArticleQuirky Update in SQL 2014
Does SQL 2014 still support "Quirky Update" ? or is this hole sealed with "QuickFix" ? :)
View Articlejava.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 Articlequery 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 ArticleQuery 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 ArticleNeed 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 Articlehow 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 Articlehow 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 ArticleBCP 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 ArticleTables 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 ArticleN' 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 ArticleQuery 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 ArticleHow 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 Articlehow 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 ArticleHow 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 ArticleThe 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