473,609 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Microsoft SQL Server Forum

Microsoft SQL Server database RDBMS - Ask questions about MSSQL administration, queries, errors, xml, data access, transact-sql, tools, mirroring, integration, setup, stored procedures, merging and more.
1
1,476
thread by: treemaster | last post Jun 1 '15 by: Rabbit
I am new to SQL and just inherited a sql database that has 3 encrypted columns. I need to export the data in those columns but it appears that everything is encrypted. I have done a lot of of googling but am unable to find any info on how to encrypt the columns if you dont know how the data was encrypted in the first place of any of the...
13
3,661
NeoPa
thread by: NeoPa | last post May 29 '15 by: NeoPa
My understanding from these MSDN pages ({CONCAT (Transact-SQL)}, {+ (String Concatenation) (Transact-SQL)} & {SET CONCAT_NULL_YIELDS_NULL (Transact-SQL)}) is that the + will propagate NULLs, where the server's CONCAT_NULL_YIELDS_NULL property is set to ON as mine is, whereas CONCAT() will convert them implicitly to empty strings. My code, a...
2
1,770
thread by: stanleypowell | last post May 26 '15 by: calvincooley
one of my SQL database corrupt. and i dont have any backup ......i got the bigest prob. i tryed to repair will all the 'DBCC' command but none of those works.. i tried 'dbcc checkdb', 'dbcc CHECKALLOC', 'DBCC CHECKTABLE' but none of this find any problem. is there any extra tools or other command to repair MSQL 7.0 Database. please helpppppp...
7
1,967
NeoPa
thread by: NeoPa | last post May 24 '15 by: NeoPa
I have a problem understanding how/why T-SQL refuses the following line within a View : IIF(..='C',IIF(..,'P',IIF(..,'Q','N')),..) AS Error: Error in list of function arguments: '=' not recognized. Unable to parse query text. It seems to be that, unlike when processing the same code in Access, it cannot, or will not, resolve expressions...
6
4,697
thread by: jimatqsi | last post May 24 '15 by: jimatqsi
Can you tell me why this CAST(ExtensionData AS nvarchar(10)) AS Expr1 results in an error "Data type mismatch - no conversion possible"? is an ntext column. This error pops up SQL Server Management Studio when I am editing a view; if I ignore it and run the view anyway, it pops up again. It also happens if I use CONVERT instead of...
3
1,781
thread by: ajp44 | last post May 21 '15 by: computerfox
Hi I am new to SQL coding - need some advice I have data with dates but the dates I have are currently "YYYYMMDD" which is fine and I don't want to change But the data I wish to bring back needs to be data from the last 7 days So
1
1,465
thread by: johnhart | last post May 20 '15 by: theodoreusa
Hi, everybody Prompt please, MS SQL 2012 on the virtual computer. Backup of all section with bases every day, at 19.00. That is, for every day I have the file copy .MDF and .LDF. Is there a way to recover the database at a certain time? Not 7 hours, but for example at 12.00. If I just attach the base then at the start I get an error about the...
13
1,974
NeoPa
thread by: NeoPa | last post May 20 '15 by: NeoPa
I have multiple users using an Access front end plugged into a SQL Server back end. I want something that identifies the user's session to SQL server. I've tried @@SPID and found that there can be multiple values when connecting from the same session of Access. Equally, login and user names/IDs are not reliable as it's perfectly possible...
1
1,439
thread by: moon92 | last post May 19 '15 by: Rabbit
I am wanting to replace "in stock", "low stock" and "out of stock" with Values of "20" , "2" and "0" my software only allows me to do one expression at a time. I wanted to know if this is possible and if so how?
2
1,607
thread by: Rohullah | last post Apr 30 '15 by: ck9663
dear all, I have 2000 rows in my table and i want to have subtotal after every 20th row could anyone help me i do not know how to do it. thanks in advance.
1
1,326
thread by: fran7 | last post Apr 28 '15 by: Rabbit
Hi, I wonder if someone could advise on the following. I inherited this code, I am not a coder but have had some kind of hack and am looking at code to reduce its vulnerability. At the top of the page I have nPage = CLng(Request.QueryString("Page")) Keyword = Trim(Request.QueryString("Keyword")) in the where clause I have
2
1,754
thread by: fran7 | last post Apr 27 '15 by: Luuk
Hi, I wonder if anyone could help. I have been hacked and one field in my database has had html and links added after the original content. http://www.website.com</title><style>.ajbv{position:absolute;clip:rect(481px,auto,auto,446px);}</style><div class=ajbv><a href=http://ma I need to remove everything after and including the title to...
2
1,637
thread by: greek21 | last post Apr 27 '15 by: BeastGeek
Hello, this is a two part question 1) Can someone recommend a way to automatically backup SQL and mysql databases? Preferably if there is an online service (free or paid). Would be nice if the software or website could handle SQL and mysql. I am currently hosting my .net MVC 3.0 application hosted on asphostportal.com. We are in the final...
0
1,383
thread by: Ralph Murgia | last post Apr 16 '15 by: Ralph Murgia
I set up a Web Service Task in SSIS with the following Server URL: http://www.webservicex.net/globalweather.asmx?WSDL, Service:Global Weather, Method:GetCitiesByCountry Output File:WeatherOutput.xml. It runs fine and produces the data, but contains control characters. Instead of < and >, it shows &lt; and &gt;.
3
1,381
thread by: NASEER337 | last post Apr 14 '15 by: ck9663
i got this question in an interview! lats say i have a below table and i want to fetch the rows only till the period is currently active (all the rows above including Active Period = 1). if Active Period = 1 that means it currently Active.Query has to be dynamic lets say if the Active Period changes later then it has to fetch the rows till...
0
1,245
thread by: Nadermann | last post Apr 8 '15 by: Nadermann
Viewing them both on the screen yields 2 different sizes (object browser says (5), sp_help says (10))....no there have not been any recent changes so I do not need to refresh the view of the object browser. Any one know why the difference? Thanks!
1
1,438
thread by: aliceinhell | last post Apr 6 '15 by: Rabbit
I know that users can be given permission to access the database to select data from database as shown below. But doing this for each user in the user table would take ages.. is there any method i could do this for all users in the user table I want to give all of them roles to allow them to read certain tables only.. any ideas how this can be...
1
1,630
thread by: rahul2310 | last post Apr 2 '15 by: ck9663
I am new to sql server I have web application in asp.net 4.0 with code in vb.net I am saving data for example: hr & safety When i save data in sql server 2008 R2 and retrive it in my web forms it shows hr amp safety what is it? how can i solve it? and what if i want to replace & with simple and?
1
1,566
thread by: herhutatmoo | last post Mar 31 '15 by: magnusforsberg
Hi, I'm having problems with databases that are getting corrupted. I have a server that runs a SQL Anywhere 11 database. (the consolidated database). Beside that, we have about 15 remote databases that run on the laptops of my mobile workforces. To keep all databases in sync, I have setup a two-way server-to-laptop replication.
1
1,462
thread by: phanikumar32 | last post Mar 25 '15 by: Rabbit
Hai all, I have to select the data from sql server table which is in following format. Ex table Name : sample The table sample has one column named as Text and the datatype of that column is nvarchar(20). so in that column i have a data like:
4
1,797
NeoPa
thread by: NeoPa | last post Mar 20 '15 by: NeoPa
I've searched around for help on this but everything I find seems to be a discussion about the relative benefits of using, or not using, this setting. I want to specify in SQL Server that ZLSs are not acceptable in the field whether or not NULLs are allowed. If ever I have to deal with an empty-looking value I want to know it's NULL rather...
1
1,354
thread by: gbullock | last post Mar 20 '15 by: ck9663
Dear all, I am currently undertaking an academic project to design & build a Web Application (using HTML5 and open standards) that will require a data storage method and a means of serving the data to the Web Application. Data will include items such as simple statistics in numeric format and information in text format. I am considering...
5
1,435
thread by: Sowjanya D | last post Mar 16 '15 by: ck9663
If i make any changes(Insert/Delete/Update)in a site then the corresponding changes will store in tables of that particular DB. How to know on which table which operation(DDl/DMl)has done. I would like to store DML activities on Database level in a table,not on perticular Table, Please help
1
1,092
thread by: Anusrivastava | last post Mar 11 '15 by: Rabbit
I am trying to loop through my counter to create a dynamic sql query which should finally look like I am trying to use this approach to get the final query but doesnt seems to work declare @CurrentRow int set @CurrentRow =0; declare @RowsToProcess int declare @FinalHistoricalQuery varchar(5000) WHILE @CurrentRow<3 BEGIN
3
1,634
thread by: william77 | last post Feb 22 '15 by: Rabbit
Below is a screenshot of my sql code and results where I've been trying to join 3 tables. I need to find the number and name of each customer that currently has an order on file for a Gas Range. I've included screenshots of the data as well. Any help you can give me with this most difficult problem will be appreciated. ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.