Cannot create MS sql stored procedure using SSMS - sql

I am trying to use the current versions of SQL Server Management Studio with Microsoft SQL Server Express (64-bit) to create a Stored procedure.
I’m following the https://msdn.microsoft.com/en-us/library/ms345415.aspx guideline.
When I get to step 3 and right-click on “Stored Procedures” the popup menu I am presented with does not include the “New Stored Procedure” option. Instead, at the top of the list of options that are presented is the option “Stored procedure…” When I click on this I get the ASCI text block “Template Generated from Template Explorer” displayed.
What I was expecting was that the “Specify Values for Template Parameters” Query Editor Pane would have been displayed and that the data I entered into it would have been reflected in the “Template generated from Template Explorer” text block which would have been displayed next.
Can anyone tell me why the “Specify Values for Template Parameters” Query Editor Pane isn’t being displayed?

You can call that dialog by using the key combination Ctrl-Shift-M.
Most likely they are not showing this dialog automatically anymore, in order to let the user change the script first and then call the dialog when ready.

New query tab in CTRL+K,CTRL+X, you can use the combination.

Related

Azure SQL: Modify table data via UI instead of writing SQL query

Is there a way I can modify the table data in an Azure SQL database via some sort of UI (like Excel) instead of having to write SQL queries? Preferably I can modify it online in the Azure Portal instead of having to install some third-party software.
Often times, I just want to edit a specific cell in the table and I feel it would be way easier if I could just double click on that specific cell to edit it instead of having to write a SQL query.
Right now, I am only able to edit data by writing queries, but I can't actually edit the data in the table by double-clicking (the red box highlighted is uneditable).
You can edit row on double click. On Azure portal follow these steps.
Go to Azure Sql database.
Left side menu blade select Query Editor
Connect to database. and under Tables folder click table three dot. popup small window open, select Edit Data(Preview).
select Preview terms check box, then click ok.
Double click on row , edit row enable.
Change on FirstName from Punit to Sunit. Click top menu Save button and its save record to database.
Final result.

Open a VFP Database Container with OpenData event coded

I am migrating data from a Visual FoxPro Data Base Container to Excel using VBA.
After trying and failing various settings of the Connection String in order to open the Container, I discovered that at Container was placed code at OpenData event; this code asks a password to open the Container. This prevents other programs open the Container for access to data, including the Password parameter of the Connection String.
Are there a way to open the Data Base Container with OpenData coded event? If the answer can be implemented in VBA, please let me know how I can do it.
Thanks for your attention.
PD: Forgive my english. Is not so good.
Solution details would probably depend on what the (custom) "Stored Procedure" code in the Vfp database is doing exactly, where one way could be simply removing it. If you got a Visual FoxPro IDE, you could for example do so by using the IDE's "Command Window":
MODIFY DATABASE ?
and then right-click the Database Designer window, choose the desired "Event" in the Properties dialog -> "Edit Code".
If then for example the code would simplified look like
PROCEDURE dbc_BeforeOpenTable(cTableName)
*Just before a table or view is opened. Return .F. to prevent table or view being opened.
RETURN INPUTBOX("Password") == "Test"
ENDPROC
... you could simply
RETURN .T.
instead

why is my chart showing only errors?

here's my SSRS chart::
I've checked the sql statements from which this chart is generated. i've run the statements in SSMS, and they return data without errors.
also, i've used sql profiler to intercept the exact statements that is being sent to sql server, and i've re-run these statements without problems.
what might be some other causes of error in the expression of the source of a chart on ssrs 2008 r2?
this is in design mode:
these are called chart series labels
There is nothing wrong with your SQL otherwise you would not see a report, let a lone a chart on the report. The issue is then in the expression.
The best method for putting in data labels is to use the pre-defined keywords. I suggest you enter #VALY as text in the properties box. For more keywords see MSDN.
Add guide:
Open the label properties dialog box.
Under the label text, see below, change the «Expr» to #VALY.
Dialog box example from google and SearchSQLServer

RDLC Report Data doesn't update to reflect changes

On my RDLC page, the "Report Data" window shows a custom dataset that it pulls fields from to display. I've modified this DataSet with some additional tables. However, these tables aren't shown and therefore I'm unable to select them for use in expressions (in the Expression window, under Datasets, there are only the tables that were originally there, not the additional tables I've added).
Refreshing the data source doesn't do anything, and if I right-click on it and select "New Dataset", I'm unable to select the parent data source (it doesn't appear in the drop down list). What I mean is, if the data source is called "MyDataSet", and under that are other DataSets, if I right-click and go to "Add Dataset", it brings up the dialog box but "MyDataSet" is not in the list of available Data sources, even though I'm specifically saying I want to add a datatable to that data source. The other, existing, datatables list it under the data source, but new ones do not.
How do I refresh the data source so I can access these new tables in my report?
This is an old question, but I was having this problem too and I'll mention my answer for future googlers.
In the Report Data Window (which automatically appears for me when I am editing a .rdlc file), I had to Refresh my Dataset (same name as the DataSetName in the Tablix in my .rdlc Report), and then that updated the XML of the .rdlc file. The new fields are then available to me.
I have the same problem with Visual Studio 2010 Premium. You must do this step:
Re-build the project that contain your Business Object
Restart Visual Studio
Refresh your DataSet (Report Data --> Right click on DataSet --> Refresh).
I managed to get this working (for SSRS in C# using a Dataset that points to a Stored Procedure) by:
hitting Shift+Alt+D (which opens the "Data Sources" window)
In Data Sources, select/click the table you want to update
At the top of the window there are icons (I'm using VS2012). The 2nd from the right is "Configure Data Source" - click it and it will open a new wizard window that will appear to be refreshing everything.
UN-check the column that is no longer applicable and/or check the new column (if the values aren't already checked/unchecked).
Go back to your "Report Data" window (Ctrl+Alt+D) and right-click on your Dataset and then click "Refresh".
All the columns should be updated at that point.
Have you tried rebuilding your project? I had to do this after changing any business object.
I had this issue for hours on VS-2008. Tried everything and at the end what worked was just to close and open it VS again.
I can confirm that just closing the solution and reopening it, with later refreshing the DataSet from Report Data window worked for me.
Seems like there is no need to restart VS.
I got the same issue in visual studio 2012. I solved it, here is the steps,
Press Ctrl + Q and type Report Data (If No Report Data window available)
Expand Data Source node to find the data set (I have used Data Set)
Right click on the Data set and select Refresh (Simply refresh the data source)
Delete the dataset and again add it with ur query or usp...
If you are using a database source the likely culprit is that you didn't create the query with select *. Without the * the query will always be static and new fields won't appear. HTH
For visual studio 2010
Open Your Data Set (.xsd file)
Right click on data set click on configure
Click on Next Next than finish
On your dataset click refresh than Changes willbe display.
Sounds like same issue is happening on VS2019. I could resolve the issue by only restarting Visual Studio, nothing else worked!
This is the only solution worked for me.
After updating the DataSource properly, open the .rdlc file in NotePad and add the newly added Field manually. Then it will be available to use in the report.
Had the same in VS2019 using an object datasource, right click and refresh on the dataset in the Report Data window had no effect until I changed the build configuration from x64 to Any CPU, then it worked as expected. Once it updated changed the build back and all was well - not at all flakey!
As ChanthJ said -
It is the only solution worked for me.
After updating the DataSource properly, open the .rdlc file in NotePad and add the newly added Field manually. Then it will be available to use in the report.
steps
Assuming you Data source is fed by stored procedures, the following worked for me (On Visual Studio 2017): -
Make the necessary changes in the source stored procedure in the Database(new Field Names etc.).
Double click the .XSD file from the Solution Explorer to open it
Delete the associated Data Table / Table Adapter.
Add the Table Adapter back into the .XSD file (the changes will be reflected)
Save and close the .XSD
Open the .rdlc report designer.
Press "ctrl+Alt+D" or Click View > Report Data.
Expand the Data Sources node.
Right Click the Data Source.
Select "Refresh".
Expand the Datasets node.
Right Click the Data Source.
Select "Refresh"
The changes will now reflect and be available for selection on the .rdlc
report designer

DataSet panel (Report Data) in SSRS designer is gone

In the layout screen of an SSRS designer e.g. Visual Studio, I have lost the report data panel.
It has disappeared and I can't remember what it is called in order to get it back.
This usually lists the following items:
Built-in Fields
Parameters
Images
Data Sources
Datasets
Previously it was in the same area as the general Toolbox and Server explorer panels.
Does anyone know how to restore it?
With a report (rdl) file selected in your solution, select View and then Report Data.
It is a shortcut of Ctrl+Alt+D.
If you are using BIDS with SQL 2008 R2 you can only get the "Report Data" menu by clicking inside the actual report layout itself.
Click inside the actual report layout.
Now select "View" from the main menu bar.
Now select "Report Data" which is the last item.
With a .rdl, .rdlc or similar file selected, you can either:
Click View -> Report Data or...
Use the keyboard shortcut CTRL + ALT + D
For future people CTRL+ALT+D or just view > report data in ancient ssrs 2008 VS BI. In newer 2017 SSRS, it's still the same. Funny how they change a bunch of things around, yet kept this the same.
View -> Datasets (bottom of menu, above Refresh)
First you have to click on the report, Then
View -> Report Data
If you are working with SQL 2008 R2 then from View---->Report Data option at bottom