powershell multi valued variables or sql table [closed] - sql

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
i'm wanting to write data into memory only for a temp time. the format is essentially the same as an sql table with say 5 columns and 1,000 rows, give or take. simply i want to store this data and run queries against it to make calculations, sorting it, querying it to then produce chart reports and excel data.
I looked at custom psobjects and then sql and i can't see why i'd use custom psobjects over sql, what do you think?
I also couldn't see that adding multiple rows as such, using psobjects was as straight forward as adding another row in sql.
thanks
steve

I guess it depends on what you're more comfortable with, but if you're going to do it in Powershell then using PS custom objects seems like a logical choice since the cmdlets were designed to work with those.

Related

SSIS Derived Column vs SQL Update Performance [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I am trying to determine which is faster in a SSIS package. I have multiple (100's) csv files that have about 150 columns of scientific precision data (38,20) for different types of scenarios. The table is layed out the same way with some other columns. The data sometimes comes in with whitespace/empty data and I have to change this to null for a data conversion at a later time.
I am trying to determine if I should go with derived columns (150) to turn the data into nulls or use a massive sql update statement for updating each column.
Thoughts? Thank you.
Generally speaking, any time you have a choice of doing a transformation in either the SSIS dataflow, or in TSQL, the TSQL way is usually faster.
However, that's only generally speaking, and the only way to know if it holds true in any specific case is to test it.

Saving a database function in a table column [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I am deploying an application at one of our vendor. We have few special character that needs to be removed using a function. Vendor is really slow with any changes that we request.
I have access to one of the configuration table that we use to save configuration table.
I want to save a SQL function in the table column that I will fetch at run-time and will execute it.
I am not sure if its a good programming practice. Please suggest if this should not be used then why or is there any other way to do it?
Database is SQL Server. Suggest if it's a good programming practice.
A better practice would be to write your function in such a way that you don't have to change it every time a new special character pops up.
Instead of writing a function that filters out a predefined set of special characters, why don't you write a function that allows a predefined set of non-special characters? Then you should never have to change it.
you can use a Computed column in sql server, for me it's not a good practice depending on the scenario that you are trying to achieve but I think this might help you

Differences between SAS and SQL [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Can anyone articulate what the key differences are between SAS and SQL? I haven't worked much with SAS but went on a weeks training course, and basically it seemed like the equivalent but more convoluted and was able to do graphs.
Would appreciate some key bullet differences between them.
Standard SQL is a language to query, manipulate and define data in any(!) database. It is like the "latin language" of DB systems. Everyone knows it in order to perform standard tasks. SAS is like an extension to that with many functions.
I found a good document:
http://www.sascommunity.org/mwiki/images/5/52/CMSSUG-0506-SQL.pdf

What can not be done / which results are impossible to show using SQL? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I would like to know if there is any problem or any sort of combinations that can not be solved using SQL language.
Is there any list in the web where I can find situations that are impossible to measure using SQL?
Or is everything possible to calculate using SQL.
Thank you.
SQL is pretty flexible, but it can't do everything. However there is no handy guide that I know of that lists what it can't do. There are things that I think you can do but shouldn't: anything that involves doing calculations one row at a time are very inefficient and will generally be faster if done in code.

SQL Server: What is the best way to Data Migration? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I want to migrate data from one database to another database in Microsoft SQL Server 2005. I need to verify those rows retrieved before I insert them to the destination database's tables. Which approach is reasonable for this kind of things?
I am trying to use two datasets in my VB.NET program. Is it reasonable? Can you suggest me?
Thanks in advance,
RedsDevils
It depends on how much data you're talking about, but I'd tend to pass on .Net datasets for a migration task, as that means pulling all the data into memory. If you must do this via a .Net client program, at least use a DataReader instead. But what's even better is to keep it all in Sql Server via Sql Server Integration Services.