SQL Server is a relational database management system from Microsoft.
3
votes
2answers
43 views
Stored Procedure performance
I'm working on upgrading an application written by a former developer at my work and I've been converting all the SQL queries in the code into Stored Procedures. I'm doing this with the idea that it ...
1
vote
1answer
36 views
MS SQL Server Cell level Encryption options
Recently, i got the task of doing some research into the data encryption at the cell level. I tried using the Symmetric key (by passphrase) & second option i took is Symmetric key (by ...
-1
votes
0answers
21 views
Issue doing VBA database update through MS Access 97, record lock violation? [migrated]
Before the question, I would like to state that I have pushed to move the front end to .NET with no success. I inherited this ball of mud. I have learned to hate Access 97 with a passion I haven't ...
0
votes
1answer
56 views
SQL Table With A Call To Action?
This is all done in Microsoft Access 2007 and SQL Server. We are creating a way for our users to quickly make notes on a customer. These quick-notes will contain tags that will prompt the user for ...
1
vote
1answer
160 views
Multi-tenant database design
My boss is currently working on a database design for a multi-tenant capable ERP/CRM system, which will have a Sql Server backend.
Some key points of the design:
A server instance will host a ...
0
votes
3answers
308 views
Why does databases use text? [closed]
This might be a little dumb question but why do we save text in the db instead of something smaller?
Couldn't there be some other way to store data in the db like in a compressed form, and then have ...
0
votes
1answer
66 views
Optional text qualifier in CSV file as input to SSIS package
I receive several CSV files each quarter to process through an SSIS package, and the formatting is inconsistent. This quarter, I encountered what I term optional text qualifiers--text qualifer of ...
1
vote
1answer
13 views
Syncing graph of data to other database (like data)
Switching to new system and need to keep old data going for some time. So, we need to update old database with data when new system being updated.
It's a transactional data, like orders/shipments. ...
-2
votes
1answer
183 views
Connect to MS SQL database from client side [closed]
I had a software that was written on VB .Net and used Crystal Report to print out reports. It was a pain to maintain in my case, so I want to move the report to webpage version.
I did some ...
1
vote
1answer
79 views
Is it a good practice to write distinct queries in a single stored procedure based on input parameters
I am going through the stored procedures written throughout our project and see that multiple distinct queries are written inside a single stored procedure and are called by passing different values ...
-5
votes
1answer
76 views
confused with ms sql nomenclature [closed]
Question 1. What is the language used in Microsoft SQL Server?
Question 2. I get confused with the name Microsoft SQL Server since its a RDBMS why its name ends as "Server". Because server is used to ...
1
vote
3answers
124 views
Using auto-increment clustered key and guid primary key together
My boss is the db administrator in a new software project and he came up with that design where every table will have both a auto-increment clustered key and a guid primary key (or possibly composite ...
1
vote
2answers
108 views
Caching query results vs Querying each time (finding a middle ground)
This is kind of an expansion on a previously asked question
Some background info:
Querying Over 5,000 items from SQL database that eventually get sorted
into a list depending on who the user ...
1
vote
1answer
90 views
Knowing when a SQL table is done updating before Querying
I am using a self hosted windows service WEB API as the layer between my Windows 8 App and a SQL Server Database because Windows 8 apps can't directly connect to SQL server like win forms or pretty ...
1
vote
2answers
488 views
.NET Why should I use DAL over direct database access
Yesterday on one of SO chats I've been told I should never connect to database directly from the application and rather use DAL.
I've been told that:
1. Using something in the middle should improve ...
1
vote
1answer
76 views
SQL - Designing a Threshold value table
I need to design an SQL table to be used for "threshold" or special values, which in general would have the following properties:
- key
- value
- comparer (less than and greater than as a start, ...
0
votes
1answer
754 views
A CLR SQL Server Stored Procedure calling an ASP.NET Web API
We are developing a big system with SQL Server database, ASP.NET Web API 2.2 services and another external services.
We need to load more data on a table while we process the current data on it. To ...
7
votes
3answers
611 views
Enterprise software: Where should the code go? [duplicate]
I recently went for an interview with a software company that claims to write enterprise level software. During the interview, the interviewer remarked that its better to use the database simply to ...
3
votes
2answers
210 views
What do I need for a database server for Mobile-Apps? [closed]
I'm struggling getting my head around writing a server for a mobile app. The app is quite simple and would manly rely on geographic data and some other basic stuff liker users etc. nothing special ...
1
vote
2answers
104 views
To convert to accurate data types or maintain default type of string
Scenario:
I have a web application that records and checks data against two temp tables (1 table being a temp source and the other being a destination for the application). These temp tables are ...
1
vote
2answers
235 views
How do I do SQL Server mapping with a new Desktop application written in C#? [closed]
In 2 weeks I will be starting a new job as a software developer in a company that currently does not employ any professional programmers. My first task will be to rewrite a Excel/VBA application in ...
23
votes
2answers
3k views
NoSQL within SQL Server
This question is not about the difference between SQL and NoSQL. I am looking for some rationale for something that really does not make sense to me at the moment (maybe because of my lack of ...
3
votes
2answers
145 views
How to infer the result of a query?
To understand what a query does, I have always thought the following is the procedure on evaluating a query:
Form the table as specified in the FROM clause.
Pick the rows from that table as ...
1
vote
1answer
321 views
Portable Data in C# App
I have developed a C# front end app for management of an SQL Database for the purposes of document control. The project this database is for has several consultants and a client spread in a variety ...
3
votes
1answer
296 views
Is a series of OR or a single IN SQL statement better?
I'm using MS SQL 2008 R2. I have been using a series of OR and have an issue where my app periodically give the following error:
Exception message: Timeout expired. The timeout period elapsed prior ...
2
votes
1answer
659 views
Git workflow for Microsoft SQL Stack
My team of developers are currently working at a client who has required us to move away from SVN and begin using their native workflow program. (Source tree by Atlassian). We are data warehouse ...
0
votes
2answers
143 views
Updating particular properties of EF objects every X amount of days in MVC
I'm building an MVC ASP.NET IMDb-like website which presents various information about movies to users, relying on 3rd party APIs to (initially) fetch movie info.
The IDs representing each movie on ...
-1
votes
2answers
350 views
Storing Dates & Times in SQL [closed]
I have a tool that I am working on which allows people to create meetings. They can select the Date, Time & Timezone that this meeting is occurring in.
I need to determine the best way to store ...
2
votes
2answers
243 views
Implementing “Trending Items” using linear regression in SQL Server
I'm building an MVC .NET website where people can rate and review movies (similar to IMDb). I'm using SQL Server for the back-end.
I'll be implementing a feature where the homepage displays trending ...
1
vote
2answers
71 views
Lock data in DB while external API call is pending?
I have an interesting situation, and I am looking for the best way to solve it. My app runs like this:
1) The user gets a Promotion Pin from Some Company, and I have a db table with these pins also. ...
1
vote
1answer
901 views
Mid-Large Asp.net MVC project: Storing images on filesystem or via SQL Server FILESTREAM [duplicate]
We have a ASP.NET MVC project with AngularJS and Entity Framework database-first, a news portal already in production for about a year. The project is mainly focused on providing content for users ...
1
vote
0answers
38 views
Managing shared storage in a high availability environment
I have an application with a custom high availability (HA) feature that provides automatic failover from an active primary server that experiences a failure to a passive backup server. To date, this ...
1
vote
1answer
58 views
Looking for advice for the following MS SQL Schema
We currently have the following SQL Schema:
Projects
Budgets
BudgetTabs
BudgetSections
BudgetTasks
BudgetTaskDetails
...
0
votes
1answer
401 views
What are the reasons to execute a WebService from SQL?
I was looking at some examples on how to call a Web Service from SQL Server.
And all of them show very unreadable code, that I imagine would be a nightmare to maintain.
So, the main question is why ...
2
votes
1answer
206 views
Entity Framework Code First Centralized database deployment
I originally posted this on stack overflow but was told that here is a better place to ask this kinda stuff. I couldn't find any other similar answered question but if there is one please give me a ...
0
votes
2answers
715 views
What is the best way to allow a user to specify a SQL server and database from a Windows application?
I am working on building a Windows application that will require a connection to at least two different Microsoft SQL Server databases (for example, a source and a target), which may or may not be on ...
5
votes
5answers
6k views
Should I store images in my database or file system in this application? [duplicate]
I'm using ASP.NET MVC 4 and SQL Server 2012. I have no problem going for either of these solutions but I want to know which one would fit better in the particular application I'm creating now.
I'm ...
12
votes
7answers
794 views
500 databases or 1 database with 500 tables or just 1 table with all the records? [duplicate]
I currently have an application that is used by a single end customer. For ease of discussion assume the application only needs a single database table for all records. I now need to support ...
0
votes
2answers
83 views
Efficient database access for related data
As an example for this question, consider a content management system that has a content database table which contains things like the page title and location as well as the content itself which could ...
-1
votes
1answer
1k views
SQLDatabase: Read a lot of data at once and process in memory or read the data when I need it?
I'm not sure how to approach this problem.
I require a big chunk of data records from the SQL server. This chunk is based on variables, so I don't know before what records I need.
I need to do a large ...
0
votes
1answer
283 views
Folder structure or database structure for creating/editing 'files'?
As a hobby experiment I am creating a on-line tool for creating web sites with the ability to create custom HTML and CSS using a template engine for safe-use of functionality.
Now I am in the ...
2
votes
2answers
189 views
How do I write my BLL to make it re-usable?
Most of it was written 4-5 years ago. Our teams long term objectives are to use Entity Framework. Though we aren't gonna do it right away as our deadlines aren't allowing us to do so.
Now we have our ...
0
votes
1answer
103 views
SQL Dev and Prod Environments
I have been tasked with setting up a SQL Development environment, and i was wondering if anyone has any advice on getting this right?
So far, I have restored the prod DB onto another box, and ...
2
votes
2answers
406 views
Data persistence for transactional customer emails
I'm developing a system to handle sending transactional emails to our customers. This is how it works:
An event occurs during the order's life cycle, for example 'shipped'
This event will trigger ...
2
votes
1answer
290 views
Is there a better way to update NoSQL records in bulk?
When we started our application we had the choice of going with the traditional MS-SQL normalized database or with a NoSQL database (RavenDB is what we tried out). Here is a simplified version of our ...
2
votes
3answers
300 views
What strategy to follow while matching sql server datatypes in C# Code First approach while using Entity Framework
While matching SQL Server datatypes with C# Code First Approach in Entity Framework, what are specific points that we should keep in mind so that our C# datatype should match exactly our SQL Server ...
4
votes
2answers
600 views
Entity Framework with no direct table access
There are some similar questions I've found here, but none of them fully answer the question I'm asking. Similar questions: here and here
In my company, I develop C# .NET applications and our Server ...
2
votes
0answers
84 views
Integrate MS Dynamics AX with Play Framework
In my company we use MS Dynamics AX 2009. This is the ERP of the company. We have around 100 users. The servers of MS Dynamics AX are in the headquarters company.
We are developping a new website ...
3
votes
1answer
1k views
SQL scripts in TFS without putting them into solutions?
I am working on adding existing SQL scripts to version control. I have Team Foundation Server 2012 set up with Visual Studio 2008 and SQL Server Management Studio 2008 R2 with the MSSCCI. I am fairly ...
-1
votes
1answer
40 views
Is SQL Server Sevice Broker appropriate for transfering large volumns of records from one database to another
I have a database that collects and process large volumes of records
However due to the legacy nature of the system im working with (and the powers that be) i need to transfer (processed) records to ...