We have a web application which from the UI is passing a value say 50.00 but when it is stored in the database it is stored as 50000. Most of our installations are for English OS (windows 7) but this problem is on a dutch installation.
Is there a way I can tweak SQL server so that it saves the value at 50 and not 50000 without changing any code? The field in the database is an integer.
The customer has SQL server 2008 express.
Related
I'm seeing SSN masked on PROD and it is not masked on DEV with same exact code. I looked up the stored procedures it is calling and it is simple select statement. I inquired DB admin and he said they are not doing any masking, since they are using SQL server 2012 he is pretty sure it is not happening on sql server side(sql server 2016 and up year can do masking on DB).
I need suggestions what else I can debug or is it possible to do masking on SQL server 2012?
I have a table, which I have clicked Edit top 200 rows, as I wish to flip a cell in one of my columns which is smallint from a 0 to a 1. Every time I change the cell's data from a 0 to a 1 it is automatically changed back to a 0.
It seems that all of my columns are immutable in this way, what am I missing so that I can edit data in my sql database table manually for testing? I am using SQL Server Management Studio 17.
When using Microsoft SQL Server Migration Assistant which converts a MySQL database to an MSSQL or Azure Sql database, triggers are generated for you during the migration and added to your SQL tables.
In my case, these were stopping me from updating and inserting to my table, so I deleted them.
When the query or stored procedure is run form SSRS, the ANSI warnings are setting to OFF - the connection takes defaults values from Server properties.
Is there any way to determinate the ANSI warnings ON for current user (not for entire server) who is define in connections ?
SQL Server 2012
i have a ms access (2.3 mimion recs) table and need to copy to sql server 2000 DB, every day i have new 15000 Recs to be imported to sql server 2000
so i need a sql statement NOT a loop to copy data from access to sql.
using vb6, ado
Copying 15,000 from Access to Sql daily even a row at a time should not be a significant problem in terms of performance, etc.
However, you could connect to the Jet provider from inside SQL server and then treat the Access data just like any other ODBC linked server from inside SQL server.
Just in case you see references to an ACE driver -- The Ace driver replaces the Jet Driver in newer version of Access.
Personally, I would still use a client based app to simply load the 15K records and not connect sql server to Jet. If I needed more performance, maybe, but not for 15K records daily.
My personal computer is running Windows 7 (language turkish) and I installed SQL Server 2008. When I create a new database, the database language is Turkish_CI_AS
And I have a server with Windows Server 2003 (language english) and installed SQL Server 2008 on that server. I set the Regional and Language Options as Turkish. I am creating a database and selecting collation Turkish_CI_AS
But when I insert a row into a table on the server, an error occurrs:
The date format is invalid
You should always use unambigious formats like YYYYMMDD or YYYYMMDD HH:MM:SS so that no matter what setting the server/database is it will be added correctly. Read this for a better understanding http://beyondrelational.com/modules/2/blogs/70/posts/10898/understanding-datetime-column-part-ii.aspx